Skip to Main Content
HTML5 Game Programming with enchant.js
book

HTML5 Game Programming with enchant.js

by Brandon McInnis, Ryo Shimizu, Hidekazu Furukawa, Ryohei Fushimi, Ryo Tanaka, Kevin Kratzer
May 2013
Beginner to intermediate content levelBeginner to intermediate
220 pages
5h 16m
English
Apress
Content preview from HTML5 Game Programming with enchant.js

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781430247432Purchase book