Introduction

The first two chapters on building the Quintus engine laid the groundwork for building a game. This chapter rounds out the engine by adding support for sprites and stages. Sprites are the primary visual GameObject used in the engine to display graphics and elements on the screen. Sprites use either basic assets or SpriteSheets to draw themselves onto the game. Scenes provide a way to package up a discrete piece of your game, such as a level, into a nice reusable package. Lastly, Stages are the primary containers for the state of your game and are responsible for tracking lists of GameObjects and ensuring they are updated and drawn on each frame.

Get Professional HTML5 Mobile Game Development 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.