HTML5 prototype of a Mario Bros game step 2: killable monsters, progressive jump and touch controls

Welcome to the last tutorial of this 2013, with the second step of the HTML5 prototype of a Mario Bros game like Lep’s World.

In the first step we introduced scrolling, double jump and breakable tiles. Now it’s time to add killable patrolling monsters, progressive jump (the more you keep jump button pressed, the higher your jump) and touch controls.

Here is the final prototype:

There’s a lot of stuff you can do here, such as moving the player with LEFT and RIGHT keys or by touching the pink bars on the left side of the game, and jumping with UP arrow key or by touching the pink bar on the right side of the game.

There are basically three type of jumps:

* Tapping jump button will result in a small jump
* Tapping and holding jump button will result in an high jump
* Tapping jump button again while jumping will result in a double jump

Like in all Mario games, enemies can be killed by jumping on their heads.

Here is the complete, fully commented event sheet:

And this is the source of the entire project.

Next time, more enemies and shooting.

  • MC

    Is it possible to use interlevel (adsense) ads with Construct 2?

    • Emanuele Feronato

      Sure, I got a game licensed and the sponsor is using interlevel ads with adsense

  • MC

    Can you make a tutorial about adding adsense ads to construct 2 games please? it would help a lot of people

  • Alexandre

    A big smile showed up on my face after reading these two lines:

    * Tapping jump button will result in a small jump
    * Tapping and holding jump button will result in an high jump

    Thank You!
    Waiting for the next steps

  • Hi

    Thanks! Could you provide the capx file (since you’re providing the full event sheet anyway)?

    • Emanuele Feronato

      You can find it at the end of the post :)

  • jai

    Hi,

    How can I import the zip in Construct 2 ?
    Thanks in advance.

    Regards, jai…

  • JC

    Nice tutorial!

    But at the end of the post, there is no source code but the exported project instead :o