You are previewing Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL.

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Cover of Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL by James L. Williams Published by Addison-Wesley Professional
O'Reilly logo

8. Creating Games Without JavaScript

HTML5 games without JavaScript, you say? Yes, I do. Well, sorta. JavaScript is considered by many as the lingua franca of the Internet. There isn’t much you can do without it or by using some non-JavaScript plugin technology. So although the phrase “without JavaScript” could also mean using a plugin such as Flash or Silverlight, in this case, it doesn’t. This chapter introduces several technologies that use an alternate language but output JavaScript code either at the compilation phase or at runtime. These technologies take advantage of the ubiquity of JavaScript to make it a sort of native code. It’s similar to how a Java or C# compiler takes the code we write and makes something much less human readable ...

The best content for your career. Discover unlimited learning on demand for around $1/day.