source:
data/trunk/scripts/thestranger.lua
@
4090
Last change on this file since 4090 was 3991, checked in by bensch, 18 years ago | |
---|---|
File size: 422 bytes |
Rev | Line | |
---|---|---|
[3919] | 1 | -- Global Variables |
2 | panic = false -- True if thestranger panics. | |
3 | walkingRouteOne = false -- True if thestranger is walking route one | |
[3905] | 4 | |
5 | ||
[3919] | 6 | function togglePanic(timestep) |
7 | panic = not panic | |
8 | return false | |
[3905] | 9 | end |
10 | ||
[3919] | 11 | |
12 | function walkRouteOne() | |
13 | ||
14 | ||
[3914] | 15 | end |
16 | ||
[3919] | 17 | function flee() |
18 | ||
19 | ||
[3914] | 20 | end |
21 | ||
22 | ||
[3919] | 23 | function tick(timestep) |
24 | ||
25 | if not walkingRouteOne then | |
26 | walkRouteOne() | |
27 | routeOneTriggered = true | |
28 | end | |
29 | ||
30 | if panic then | |
31 | flee(timestep) | |
32 | end | |
33 | ||
34 | ||
[3905] | 35 | return false |
36 | end |
Note: See TracBrowser
for help on using the repository browser.