A simple platform game
In less than 2 weeks, I'm going to London for the Mozilla Festival where I was invited to present on the topic of HTML 5 game development.
Well, I'd better have a game to show off, haven't I. So I took one of the examples from my old P2PU course and turned it into something a little more interesting.
Go here to try playing it. Left and right arrows to move, space bar to jump. The object is to get to the square labeled "goal" in the shortest amount of time. It should work in any modern browser. (Please let me know if you can't get it to run.)
So far, pretty boring. But now here's the interesting part. Go here, put in a name, and click Create Level. Then click the "Edit" link next to it.
This interface obviously needs work, but you can use the radio buttons to select a tool, and then use the tools to scroll around, create and delete platforms, and set the start position and goal position. Click "Save Changes" and then go back to the level-select screen and try playing your new level.
When I was a kid, one of my favorite activities (besides playing video games) was to take a long sheet of paper and design new levels along with the occasional new game mechanic. How I wished I could turn those drawings into real playable levels! Now that I know how, why not put it on the web where anybody who comes along can draw a level?
Planned features include: recording the best completion times for each level, so there's an object of competition; a login, so that it knows who the high scores belong to and who created each level; maybe a rating system so you can let people know if their level was fun or not; and... oh yeah, monsters and power-ups would be nice. Some moving platforms and trees and clouds etc. so it's not just boring brown rectangles.
I'll be cramming in some of those features over the next two weeks (and doubtless I'll still be adding stuff on the airplane). The plan is to arrive at the Mozilla Festival with a sturdy game skeleton and then run a game-development workshop where participants flesh it out with artwork, sounds, features, and level design.