Flash Game Engine Demo

It’s been almost a month since I wrote about the 2Bee game contest, time sure has flown! I hope you guys are making progress on your games, even if they won’t be submitted to the competition. To motivate you, and show off a little :-), I thought I’d share a slightly out of date demo of the game engine I’ve written for flash. Check it out!

Arrows keys and A + S…

So it’s pretty neat huh? Nothing too complex in some senses. I use the grid data structure for collision detection and everything is an AABB. Notably, I’ve taken a lot of ideas from Slick the ever excellent Java game engine.

What I’m most proud of are three things. The first, which I’m sure you noticed, is the slick camera work which is triggered when you enter and then “defeat” the boss in the top room. Second, there’s a whole lot of scripting going on to lock/unlock doors, spawn bad guys, etc. This is something I haven’t previously done in a game before and it’s pretty exciting. And lastly, you can’t tell from playing but I have managed to turn Flash CS4 into a wonderful level editor / scripting engine! What this means is I’m able to use the flash environment itself to lay out the levels and script events — no need to write a custom tool.

Anyway, enough bragging! I’m not ready to share the code behind this with you today, but I’m sure that sometime soon I will. In the meantime I hope you’re making progress on your games and look forward to seeing them in action!

Related Posts

6 Comments

  1. twood
    Posted March 29, 2009 at 11:31 am | Permalink

    pretty neat! Took me a moment to figure out what I needed to hit A to “charge” up my jumping (but obviously documentation / effects for that can come later).

    I had a few times where the game would seem to pause momentarily on me, but that could just be my machine. The “boss” camera effect is a nice touch — I love smoothly resizing camera views.

    It’s always interesting to see works in progress, so thanks for sharing!

  2. Posted March 29, 2009 at 12:39 pm | Permalink

    Thanks, twood! The controls in the demo are not what will end up in the final game. In fact I’ve removed running entirely! And, thanks for noticing the camera, that was a lot of work but totally worth it!

  3. Gornova
    Posted March 31, 2009 at 3:52 am | Permalink

    you are really incredible Alex :D great great great example how with a little of experience, you can do a lot :D continue work on this flash project.. and hire some graphic for artwork..

    something like:

    http://orin.deviantart.com/art/Mephiles-the-Dark-66244079 http://dmitrys.deviantart.com/art/char-concept-23563061 http://khuzul.deviantart.com/art/In-The-Mood-For-Love-20093288

    something, as you note on your another post is visual “unseen” already

    i’ll try your code, if you would to share :D

  4. Posted March 31, 2009 at 8:02 am | Permalink

    Hey Gornova, thanks for the kind words! I checked out those deviants you linked, wow! They are pretty talented it seems. Fortunately, though, I’m lucky enough to have a super talented artist working with me this time, so get excited about what’s in the works!

  5. Gornova
    Posted March 31, 2009 at 10:33 pm | Permalink

    :D can you explain how you implement gravity in you system? thanks :D

  6. J00
    Posted March 20, 2010 at 2:09 pm | Permalink

    Ah, love the physics of jumping! Care, to share?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>