9781430247166_CO-01.jpg

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