Talking about Serious Scramblers game, Game development and HTML5.
I played a bit with GDevelop during these days and I was able to learn something which I want to share with you.
The Serious Scramblers prototype I published in step 1 now is getting a big update with patrolling enemies which players can kill by jumping on their heads and disappearing platforms, and everything without writing a single line of code.
Let’s have a look at the prototype:
Focus on the canvas, then play with LEFT and RIGHT or A and D keys to move, SPACE, SHIFT or W to jump.
Do not fall down or disappear from the upper side, watch out for disappearing platforms, the grey ones, and avoid enemies, or kill them by landing on their head.
Being GDevelop a no code tool, there isn’t any source code to show, anyway this is how I build the game.
First, I added four scene variables:
maxYPos: here I store the lowest platform y position, useful to know where to place a newly recycled platform.
gameStarted: boolean variable to check if the game started.
enemyRatio: probability of an enemy to spawn on the platform (0 – 99)
disappearingRatio: probability of a platform to disappear when the player lands on it (0 – 99)
Platform object has two interal variables:
initialized: boolean variable to check if a platform has been initialized (correctly placed, with an enemy on it, and so on)
disappearing: boolean variable to check if the platform is a disappearing platform.
And patrolling enemies have three internal variables:
left: maximum left position reachable before the enemy starts to move to the right
right: maximum right position reachable before the enemy starts to move to the left
goingRight: boolean variable. Is the enemy moving to the right? If not, it’s moving to the left.
Finally, this is the Events sheet, I suggest you to click on it to open it on a new page.
I did not use code, but I needed to learn a bit how GDevelop works. Anyway it was fun. I am going to add real graphic assets during next step, meanwhile you can download the entire GDevelop project.
Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.