Once you've typed in all of the modules, you should be in a good position to test Emaga5. Table 5.3 shows the game key bindings that apply to in-game navigation.
Key | Description |
---|---|
up arrow | run forward |
down arrow | run backward |
left arrow | run (strafe) |
right arrow | run (strafe) right |
numpad 0 | jump and respawn |
z | free look (hold key and move mouse) |
tab | toggle player point of view |
escape | quit game |
tilde | open console |
left mouse button | fire weapon |
Figure 5.4 shows your player-avatar shortly after spawning in Emaga5.
Figure 5.4: The Avatar in Emaga5.
To test the game, travel around the world collecting gold, silver, and copper coins, and watch the total increase. You will have to watch out, though. The AI beasts will track you and shoot you if they spot you. Like the saying goes, you can run, but you'll only die tired! You can grab a crossbow and shoot back. In some of the huts you will find first-aid kits that will patch you up. One more thing—don't fall off cliffs. Not healthy.
As an exercise, investigate how you would enable a game timer to limit how much time you have to gather up the coins. Also, display a message if your score exceeds a certain value.
Have fun!