Video games are fun to play, but they are much more fun to develop. Taking an idea for a game to fruition in the browser is one of the most gratifying experiences for a software developer. And it makes testing the best part of your day.
In this talk, you'll see how to implement a game using HTML5 APIs such as Canvas, Audio, and Local Storage. With the Canvas API you can implement static games, such as board games or puzzles, with relative ease. But in this talk, we'll tackle the more difficult realm of the game spectrum by looking at the implementation of a full-blown arcade game, complete with smooth animation, sprites, and yes, explosions.
We will cover a great deal of ground in this demo-fueled overview of game development, including:
- Animation with the Canvas API
- Scrolling backgrounds
- Implementing sprites
- Developing a behavior-based game framework
- Collision detection
- Using sounds
- Improving performance through timelines and profiling
- Implementing controls, such as scoreboards