#OneHourGamedev – 7

Got a lot done today. Managed to do a proper solution for scaling as I wrote about in the last post. The game now scales to fit without stretching, which makes it actually playable in all possible resolutions (although I’m still focusing on portrait). Fortunately I wasn’t the only person to have this idea/problem and I managed to find a somewhat complete solution on the Defold forums.

I also implemented positional death triggers for the the player which was made possible by solving the scaling/stretch problem. This means that you can actually reset when you go out of bounds (the end menu appears). I’m not quite sure what’s up next, perhaps the reusable gui button mentioned in the previous post, or perhaps some particle effect for the player death. No matter exactly what’s up next, it’s getting exciting.

#OneHourGamedev – 4 to 6

Been incredibly busy with Three Lines and Braindust last few days and fell behind a bit on the challenge. I’m in the process of catching up and I’m making great progress! Currently you can bounce between the sides and change direction mid air. Also made it so the player is mostly stationary, while the level scrolls past, getting this to feel smooth yet “physical” was quite tricky, as you can tell in the below timelapse it took quite some tweaking.

The player will also get pulled down (relatively) so they’re always on the same offset from the button. This is done by speeding up the level scrolling temporarily, to give the impression of the camera catching up. This particular effect doesn’t look as good as it can at the moment, as the start of the “pulldown” is sort of jerky. This is mostly because of the effect only happening when the player is touching a wall, probably it’d be best if it happens in-air if the player was above a certain threshold as well. That’s for the future though.

Dabbled about with the GUI system as well. There’s a lot of manual labor when setting stuff up, but it seems like it does have anything you could need. Managed to set up a few buttons and hook them up to loading/unloading the main gameplay collection. When it comes to GUI, next up I’m really tempted to try to make a reusable generic button object. Not sure how it would work exactly, but stuff I’ve seen so far (mostly while being lost in the Defold interface) points to it being possible.

The very next thing I’m planning to do is making sure you can actually die. Initially a position check on the x axis would be simplest solution. There’s some issues with that though, Defold seems to stretch to fit by default (not GUI though) which makes stuff look somewhat hideous. As the width of the play area needs to be constant (for gameplay), without stretching (for looks), I’m gonna need to do something to fit the play area in the center of the screen no matter the aspect ratio. Probably it’d be a sensible strategy to make it look okay on narrowest aspect ratio and then fill the sides with something not-so-important (blank space!).

Slightly rambling post today. Hopefully it made sense. Enjoy the timelapse!

#OneHourGameDev – 3

Busy day today so I’ll keep this short. The hour of development for today turned out be more like an hour and twenty minutes. Definitely made some progress! The level now scrolls vertically and you can only switch direction once while in the air. Also learned some valuable lessons on how the engine works.