Get the full commented source code of

HTML5 Suika Watermelon Game

Talking about Lep's World game, Construct, Game development, HTML5 and Javascript.

There’s no doubt the king of all platform games is Mario, but recently I played on my iPhone a great Mario-like game called Lep’s World.

So I wanted to create something similar with Scirra’s Construct 2 and in a few minutes I made a platform prototype featuring scrolling, double jump and destructible tiles.

There are four objects in the game:

Hero: the hero of the game, call it Mario or Lep, it does not mind. It has a Platform behavior

HeadSensor: useful to detect collisions between hero’s head and destructible tiles

SolidWall: the solid, unbreakable wall with “Solid” behavior

DestructibleWall: as the name suggest, the tile that can be destroyed by jumping under it.

Then, I only needed four blocks of actions:

And this is the result:

Move our hero with LEFT and RIGHT arrow keys, UP to jump, UP again to double jump and try to destroy purple tiles.

Download the Scirra project file. Next time, enemies.

Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.