136 Video Game Design Foundations
do! The computer would be just as happy
allowing a character to walk on water and sink in
land than to do it the way we see in nature. The
game world is yours to create. If you want people
to walk upside down or walk on liquids, then
program interactions in that way.
Writing a Logic Statement
Consider the following situations. Read the statement and then deter-
mine an appropriate logic statement for the situation. On a separate piece of
paper, write the logic statements to describe the conditions and events.
1. The grasshopper jumps on a piece of food and the player earns 100
points.
IF
_____ collides with _____,
THEN
add _____ to score.
2. The grasshopper jumps on a lily pad and does not fall into the water.
IF
_____ collides with _____,
THEN
_____ stops.
3. The grasshopper runs into a mushroom and falls into the water.
IF
_____ collides with _____,
THEN
_____ movement falls
AND
_____
loses one life.
4. The grasshopper runs into a four-leaf clover and earns 50 points and an
extra life.
IF
_____,
THEN
_____
AND
_____.
5. The player achieves 10,000 points and receives a bonus extra life.
IF
_____ equals _____,
THEN
add _____ to the number of remaining
_____.
The Games Factory 2
The Games Factory 2 (TGF2) is a game engine developed by Clickteam.
It is a powerful game engine that uses object-oriented programming to make
two-dimensional video games. The games can be large, multilevel, complex
games as TGF2 is very powerful. Two extremely benefi cial features of TGF2
are:
• The game engine runs very well on a standard PC.
• The game engine is very user friendly.
The next sections take a look at how the user interface of the software
is organized, Figure 5-14. Understanding the interface is the fi rst step in
building some exciting games. Detailed explanations of each tool are given in
the workbook lessons.
THINK ABOUT IT
ACTIVITY 5.5
Think about how collision theory
works in a bowling game. What
collisions need to take place?
How would collision theory
apply when programming the
falling of the bowling pins?