December 2012
Beginner
344 pages
7h 7m
English

Now that we’ve created the images for our Mr. Stick Man Races for the Exit game, we can begin to develop the code. The description of the game in the previous chapter gives us a basic idea of what we need: a stick figure that can run and jump, and platforms that he must jump to.
We’ll need code to display the stick figure and move it across the screen, as well as to draw platforms. But before we write that code, we need to create the canvas to display our background image.
First, we’ll create a class called Game, which will be our program’s main controller. The Game class will have an ...
Read now
Unlock full access