9781430247166_CO-01.jpg

Chapter 6

Game Objects and Animation

All the games we’ve made so far in this book have been turn-based. That means the player makes a move and then waits for the computer to make its move. Board games, card games, strategy games, and many simulations are turn-based. Starting with this chapter, and continuing in Chapters 7 and 8, you’re going to learn all the skills you need to make fast-paced action games.

This is an important chapter, because you’re going to learn some fundamental JavaScript programming techniques and a brand-new way of displaying images for games. These are the things you’ll learn:

  • How to display images using canvas technology. ...

Get Foundation Game Design with HTML5 and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.