O'Reilly logo

HTML5 Game Programming with enchant.js by Hidekazu Furukawa, Brandon McInnis, Ryo Tanaka, Ryohei Fushimi, Kevin Kratzer, Ryo Shimizu

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 2

image

JavaScript Basics

As we said in Chapter 1, enchant.js is written in the JavaScript programming language. When you program games in enchant.js, you’ll write commands and other code in the JavaScript language, so we need to examine simple JavaScript before diving headfirst into enchant.js games. If you are already familiar with JavaScript, feel free to skip this chapter.

JavaScript is the primary programming language used for scripting on web pages. Unlike most programming languages used to create software applications that must be installed on computers to function, JavaScript code runs on the client web browser. Given that enchant.js ...

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