Chapter 2

Learning JavaScript

JavaScript is a computer-programming language that’s at the heart of an HTML5 game. Almost everything that’s important in your game is going to be controlled by JavaScript in some way. JavaScript is one of the easiest programming languages to learn. You can learn everything that’s important to know about JavaScript in a few hours or days, and, with a bit of practice, you’ll be writing it fluently in no time.

In this chapter you’re going to learn everything that’s important in JavaScript that you need to know to start making games. In the chapters that follow I’ll show you how to apply these skills to real game ...

Get Foundation Game Design with HTML5 and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.