O'Reilly logo

HTML5 Games: Novice to Ninja by Earle Castledine

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

Level 6: Mathematics & Physics

Well, I won’t sugar coat it: we’re in trouble. The Lucky Dare Game Jam Competition is 50% over, and it turns out we wasted the entire first day working on entirely the wrong project. We need to pivot and somehow transform our spooky maze crawler into something physics-based.

This means emulating the forces that act in the world around us. Good physics can increase player immersion and make a game world feel fluid, natural, and dynamic. Game physics can range from simple (often exaggerated) approximations to elaborate simulations. In this chapter, we’ll cover essential math concepts for game development and use them to implement some widely applicable game physics.

As always, game development is 90% smoke and mirrors. ...

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