Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/single_player_map/scripts/guard.lua @ 3945

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
2walkingRouteOne = false   -- True if thestranger is walking route one
3exitPositionReached = false
4playerInLock = false
5hangarReached = false
6
7
8function stopWalkRouteOne(timestep)
9walkRouteOne = false
10return true
11end
12
13function playerReachedLock(timestep)
14playerInLock = true
15return true
16end
17
18function walkRouteOne(timestep)
19
20
21end
22
23function goToExitPosition(timestep)
24
25return false
26end
27
28
29function goToHangar(timestep)
30
31return false
32end
33
34
35function waveToSpaceship(timestep)
36
37end
38
39
40function tick(timestep)
41
42if walkingRouteOne then
43waklRouteOne(timestep)
44end
45
46if not walkingRouteOne and not exitPositionReached then
47exitPositionReached = goToExitPosition(timestep)
48end
49
50if playerInLock and exitPositionReached then
51hangarReached = goToHangar(timestep)
52end
53
54if hangarReached then
55waveToSpaceship(timestep)
56end
57
58return false
59end
60 
Note: See TracBrowser for help on using the repository browser.