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

Get HTML5 Game Development For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.