© Rex van der Spuy 2015
Rex van der SpuyAdvanced Game Design with HTML5 and JavaScript10.1007/978-1-4302-5801-8_4

4. Making Sprites and a Scene Graph

Rex van der Spuy
(1)
Ontario, Canada
 
The game designer’s fundamental building block is the sprite. A sprite is any image, shape, or text that you move, animate, or interact with on the screen. In this chapter you’ll learn how to make sprites from scratch, and then, in the chapters that follow, you’ll learn how to move them, make them interactive, add some collision detection, and use them to build a game.
An important feature of the sprite system that we’re going to build is that you’ll be able to compose sprites together to make compound objects and game scenes. Each sprite will have its own local ...

Get Advanced Game Design with HTML5 and JavaScript 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.