Skip to Main Content
Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL
book

Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL

by Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
October 2015
Intermediate to advanced content levelIntermediate to advanced
496 pages
13h 43m
English
Apress
Content preview from Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building a 2D Game Physics Engine: Using HTML5 and JavaScript

Building a 2D Game Physics Engine: Using HTML5 and JavaScript

Michael Tanaya, Huaming Chen, Jebediah Pavleas, Kelvin Sung

Publisher Resources

ISBN: 9781484209523Purchase book