Game Development Reference
In-Depth Information
Figure 4-1. Snakes and Ladders
Figure 4-2. The Snakes and Ladders board
Next, we'll try coding a version of Snakes and Ladders ourselves. Note that we have not as yet
gotten to using a framework, so we won't have much to display on the screen. Later on, when
frameworks are introduced, we shall integrate this idea with them. For now, we'll concentrate on the
logic behind the game and work out how to write the logic using Lua first.
Where Are the Snakes and Where Are the Ladders?
Let's take the board shown in Figure 4-3 as the starting point for our game.
4
Search WWH ::




Custom Search