Chapter 3
Crafty
3.1 Source Code
All of the source code and examples are available at the website http://HTML5GameEnginesBook.com/. All the code, graphics, and sound are licensed free for personal and commercial use (MIT and CC-BY-3.0). Crafty is dual licensed MIT or GPL.
3.2 Introduction
Crafty is an open-source JavaScript game library developed by Louis Stowasser [54]. It renders to either Canvas or DOM. Its emphasis is on being lightweight and easy to use. For that reason, it is a good candidate to rewrite the Pong game from the previous chapters.
In this chapter, not only do we rewrite Pong, we will introduce a few more HTML5 considerations ...
Get HTML5 Game Engines 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.