A N00b's Look at HTML5 Game Development
The Web Dev Zone is brought to you in partnership with Mendix. Discover how IT departments looking for ways to keep up with demand for business apps has caused a new breed of developers to surface - the Rapid Application Developer.
Something disgusting, like six years ago, I listed on 43Things that I wanted to write a video game. I’ve actually made numerous arrested attempts ever since I started programming with my TI-94a back in 1983. My last attempt has been much less arrested (though still incomplete).
I’ve learned a lot in my most recent endeavor, so it’s time to share. You can follow the actual work in progress, but my plan it to recreate the steps I’ve gone though over the course of a few posts.
I am too ambitious. With that in mind, I created a set of constraints for making a game.
- keep gameplay simple
- don’t worry about art (that can come later)
I started off wanting to make a game for the Windows 8 store. I decided afterwards that I will target modern browsers in general. This means that I took no dependencies on the WinJS libraries. (Though the Windows store is still my endgame.)
I also decided to not use any frameworks (such as ImpactJS). Not because they are bad, but because I want to learn why I need them.
This is my spec (well, more or less).
The player will build structures in an asteroid field. Waves of enemy ships will attempt to destroy those structures. The player has to manage resources such as minerals and solar power, and fend of the attacks. Structures will cost minerals to build and require power to operate.
The player can navigate the map (up, down, left, right) as well as zooming in and out. There will be a minimap.
Graphics will be sprite-based. The game should be touch-friendly (really, I want touch to be primary).