O'Reilly logo

Foundation Game Design with HTML5 and JavaScript by Rex van der Spuy

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

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

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