CHAPTER 6

image

Creating an Arcade Shooter

In Chapter 5, we looked at game design and created our very own Whack-A-Mole (or should I say Whack-A-Droid?) game. In this chapter, we look at another game, an arcade shooter game, that is more complex than Whack-A-Mole.

In the arcade shooter, we include several features that contribute to a fun game: background music, non-playable characters (like good guys and bad guys), explosions, scrolling backgrounds, and more. Bringing together all these elements requires careful planning with regard to game design because all the classes we create must interact with each other. For example, a bullet fired from a player’s ...

Get HTML5 Game Programming with enchant.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.