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 5

Introducing simpleGame.js

In This Chapter

arrow Using the simpleGame engine

arrow Building a game with simpleGame

arrow Understanding properties and methods

arrow Sprite motion methods

arrow Reading the keyboard

Games are a lot of fun to play, and they can be even more fun to create. However, game programming is often considered one of the more difficult forms of programming to learn. Game development might seem a bit intimidating, but there’s good news. It’s more manageable to learn how to build games when you have a library that simplifies all various features you need.

This chapter introduces you to a simple game engine and library called… simpleGame. Along the way you’ll also learn about object-oriented programming and one of the most important types of objects you’ll use: the sprite.

Using a Game Engine

Games often use sophisticated programming techniques, and often require a great deal of math knowledge. Eventually, you’ll learn these things, but even experienced programmers frequently use some ...

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