© Zarrar Chishti 2017

Zarrar Chishti, Cross Over to HTML5 Game Development, https://doi.org/10.1007/978-1-4842-3291-0_4

4. Apply Intelligence with JavaScript

Zarrar Chishti

(1)Glasgow, UK

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”

Rick Osborne

As you have learned, HTML is the bone structure and CSS is the look and appearance of our game. So what does JavaScript bring to the table? JavaScript is a programming language used for creating interactivity in web sites . So we could say that we use JavaScript as the master controller of our game.

So why do we need it for our game? The obvious answer is that the game needs to be able to create the zombies, fire the gun, and respond ...

Get Cross Over to HTML5 Game Development: Use Your Programming Experience to Create Mobile Games 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.