O'Reilly logo

HTML5 Game Development For Dummies by Andy Harris

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 12

Ten Concepts Behind simpleGame

In This Chapter

arrow How the canvas forms the basis of the game engine

arrow Mathematical foundations of gaming like angles and vectors

arrow How a game engine manages frame rate

arrow Adding custom event handlers for touch interface

arrow How collisions and boundary events work

The simpleGame library is designed to be easy to use. Like most code libraries, it simplifies sometimes complex code. You can use simple Game just fine without understanding how it works, but at some point, you’ll need to know how the various technologies work. In this chapter, I show some of the key concepts used to create the simpleGame engine.

Many of the ideas are code, but some are really math concepts. If you’ve ever asked your math teacher when you would use math, game programming is at least one answer. A game programmer really needs to have a solid grasp of math, at least some algebra, geometry, and trigonometry. It’s even better to have some knowledge of linear algebra, statistics, ...

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