Mario Style Coinbox

Here’s a basic example of a Mario style coinbox.  This is the type of box that you’d jump at from underneath and bump your head on and a coin comes out of the top.

HTML5 Demo


  • Left & Right Arrows – Move
  • Up Arrow – Jump



One thought on “Mario Style Coinbox”

  1. Really cool. I made mine silly mode. The game was creating an invisible rectangle under each box that the player could collide with. The rectangle was slightly bigger than the box so on collision -> coin appears.

    But thanks for your example 😉

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s