Last change
on this file since 3945 was
3945,
checked in by snellen, 19 years ago
|
wrote prototype for prisoner, guard, secondguard
|
File size:
844 bytes
|
Line | |
---|
1 | -- Global Variables |
---|
2 | walkingRouteOne = false -- True if thestranger is walking route one |
---|
3 | exitPositionReached = false |
---|
4 | playerInLock = false |
---|
5 | hangarReached = false |
---|
6 | |
---|
7 | |
---|
8 | function stopWalkRouteOne(timestep) |
---|
9 | walkRouteOne = false |
---|
10 | return true |
---|
11 | end |
---|
12 | |
---|
13 | function playerReachedLock(timestep) |
---|
14 | playerInLock = true |
---|
15 | return true |
---|
16 | end |
---|
17 | |
---|
18 | function walkRouteOne(timestep) |
---|
19 | |
---|
20 | |
---|
21 | end |
---|
22 | |
---|
23 | function goToExitPosition(timestep) |
---|
24 | |
---|
25 | return false |
---|
26 | end |
---|
27 | |
---|
28 | |
---|
29 | function goToHangar(timestep) |
---|
30 | |
---|
31 | return false |
---|
32 | end |
---|
33 | |
---|
34 | |
---|
35 | function waveToSpaceship(timestep) |
---|
36 | |
---|
37 | end |
---|
38 | |
---|
39 | |
---|
40 | function tick(timestep) |
---|
41 | |
---|
42 | if walkingRouteOne then |
---|
43 | waklRouteOne(timestep) |
---|
44 | end |
---|
45 | |
---|
46 | if not walkingRouteOne and not exitPositionReached then |
---|
47 | exitPositionReached = goToExitPosition(timestep) |
---|
48 | end |
---|
49 | |
---|
50 | if playerInLock and exitPositionReached then |
---|
51 | hangarReached = goToHangar(timestep) |
---|
52 | end |
---|
53 | |
---|
54 | if hangarReached then |
---|
55 | waveToSpaceship(timestep) |
---|
56 | end |
---|
57 | |
---|
58 | return false |
---|
59 | end |
---|
60 | |
---|
Note: See
TracBrowser
for help on using the repository browser.