O'Reilly logo

Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL by Jason Pace, Fernando Arnez, Jebediah Pavleas, Kelvin Sung

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

CHAPTER 4

image

Implementing Common Components of Video Games

After completing this chapter, you will be able to:

  • Control the Renderable object’s position, size, and rotation to construct complex movements and animations
  • Receive keyboard input from the player and animate Renderable objects
  • Work with asynchronous loading and unloading of external assets
  • Define, load, and execute a simple game level from a scene file
  • Change game levels by loading a new scene
  • Work with sound clips for background music and audio cues

Introduction

In the previous chapters, a skeletal game engine was constructed to support basic drawing operations. Drawing is the first ...

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