#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!

Posted in #OneHourGamedev, Game Development, Programming