Chapter 4

Creating, Saving, and Loading Tracks

This chapter will explain a few of the basics on structuring games in JavaScript as well as game play in general. We will also cover a few JavaScript tips and tricks.

Who we are, what we will build, and why

We are two of the five creators of Marble Run (, a rather successful browser game. The team that created Marble Run consists of two designers (Matthias Hempt and Nicola Lister) and three developers (Eberhart Graether, David Strauss, and Mathias Paumgarten). David and Mathias are the authors of this chapter.

In this chapter, we will create a small application using both canvas and ...

Get HTML5 Games Most Wanted: Build the Best HTML5 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.