Hardware Reference
In-Depth Information
Part 4: Use the skills you learned in Adventure 5 and re-using your button and
7-segment display hardware to add a start button, a diamond countdown and an
indicator to alert the player that time is running out.
Once your game is complete, you can take it in whatever direction you want, introduce
your own creativity and make it your own.
Suggested challenges are included in each part of the adventure. You should not
take up these challenges or change the program until you have completed the
whole adventure, otherwise you may find yourself tangled up in a whole lot of
complications! Come back to them after you've finished the adventure.
Part 1—Building the.Arena
The game arena for Crafty Crossing is where all the action is going to take place. The
player will start at one end and try to get to the other—but there will be obstacles lit-
tering the arena to slow him down.
Before there are any obstacles in it, the arena is a rectangle of GRASS blocks that makes
up the floor, and GLASS walls that go all the way round (see Figure 9-2). You will use
constants to define the width, height and length (or the x, y and z) of the arena. By
modifying the constants, you will be able to change the size and shape of the arena and
the obstacles will automatically resize to fill the space. The arena floor will need to be
three blocks deep as the river obstacle goes down two blocks.
FIGURE.9-2 Your game arena will look like this.
 
Search WWH ::




Custom Search