Game Development Reference
In-Depth Information
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 ( marblerun.at ), 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 DOM elements. The app consists
of a grid and a simple list (see Figure 4-1). The idea is that you will be able to build something, what we
refer to as a track, and save it in a database-compatible format.
The idea is that you can reload the saved tracks onto your grid.
 
Search WWH ::




Custom Search