Changeset 4090 for data/branches/presentation/scripts
- Timestamp:
- Jul 4, 2006, 1:39:11 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
data/branches/presentation/scripts/spaceship_flight.lua
r4088 r4090 1 1 -- Global Variables 2 panic = false -- True if thestranger panics. 3 walkingRouteOne = false -- True if thestranger is walking route one 2 thisscript:addObject("GameWorld", "Ambush_at_Jupiter") 4 3 5 4 6 function togglePanic(timestep)7 panic = not panic8 return false9 end10 11 12 function walkRouteOne()13 14 15 end16 17 function flee()18 19 20 end21 5 22 6 23 7 function tick(timestep) 24 8 25 if not walkingRouteOne then 26 walkRouteOne() 27 routeOneTriggered =true9 Ambush_at_Jupiter:setPlaymode("Horizontal") 10 11 return true 28 12 end 29 30 if panic then31 flee(timestep)32 end33 34 35 return false36 end
Note: See TracChangeset
for help on using the changeset viewer.