O'Reilly logo

HTML5 Game Programming with enchant.js by Hidekazu Furukawa, Brandon McInnis, Ryo Tanaka, Ryohei Fushimi, Kevin Kratzer, Ryo Shimizu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required