Build 10 games and learn game development along the way in this fast paced game development course

Get the source code of 12 commercial games, loaded 50+ million times, and learn the secrets of game design

Learn how to make a successful Flash game from a real world example. Fully commented source code

Create realistic Flash physics games from scratch with advanced features, from Angry Birds to Crush the Castle

Create a Flash game like Space is Key with a lot of room for customization

Did you ever play Space is Key by Christopher Jeffrey and its sequels?

It’s a quick one button game which can be used to learn some programming basics, so I am showing you this little prototype which allows a lot of customization such as player speed, jump height, jump rotation, number of floors and some minor features.

I am not using any physics engine because there’s no need in a game like this one, so let me show you the fully commented source code:

As you can see, I did not use any tween or special library, so the code can be easily ported in your preferred language.

And this is the result:

Try to jump with the mouse (yeah, no space here). No obstacles at the moment, I will introduce them in next step. If you are a fan of Space is Key series, you will notice I also fixed the jumping rotation when moving from right to left.

Edit: Got a mail from Chris, he told me « Also wanted to address the left/right jump that you ‘fixed’. It was actually designed and intended that way to do doing the ‘backflip’ instead of the ‘frontflip’ on some levels throws the player off and adds to the difficulty. »

Download the source code.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (12 votes, average: 3.33 out of 5)
Loading ... Loading ...
Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now
Be my fan on Facebook and follow me on Twitter! Exclusive content for my Facebook fans and Twitter followers

This post has 5 comments

  1. Noe

    on December 9, 2013 at 8:43 pm

    Awesome tutorial! Thx Emanuele

  2. Create a Flash game like Space is Key with a lot of room for customization | Adobe

    on December 9, 2013 at 9:47 pm

    […] Emanuele Feronato Learn now to create a game like the successful Flash game “Space is Key” with a lot of […]

  3. Hussein Tammam

    on December 25, 2013 at 7:10 pm

    Hi Enamuele. I’m a very old fan of yours and really love your tutorials and I was wondering if you could do a tutorial on Ash framework. It’s a really good entity component system. Sadly though there are not many tutorials on it. I would be really grateful if you would check it out http://www.ashframework.org/

  4. Create an HTML5 game like Space is Key with a lot of room for customization - Emanuele Feronato

    on January 15, 2014 at 7:11 pm

    […] Last month I showed you a quick but fully customizable Flash prototype of the addicting game Space is Key by Christopher Jeffrey, you can see it in the post “Create a Flash game like Space is Key with a lot of room for customization“. […]

  5. Runan

    on August 12, 2014 at 3:32 pm

    Great tutorial! Thank you for sharing :D

Thank you for the download!!

I hope you will find it useful and make something interesting out of it

To keep up to date with the blog, why don't you like my Facebook page and follow me on Twitter?

Want to learn more? Don't miss this:

Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now

×