Running Emaga5


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.

Table 5.3: Emaga5 Game Key Bindings

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.

click to expand
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!




3D Game Programming All in One
3D Game Programming All in One (Course Technology PTR Game Development Series)
ISBN: 159200136X
EAN: 2147483647
Year: 2006
Pages: 197

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net