Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/old_trunk/scripts/testlevel/testflight.lua @ 5038

Last change on this file since 5038 was 4448, checked in by snellen, 18 years ago

reorganized scripts (put them in folders), implemented levelchange by script, put some npcs in spaceshiptower

File size: 397 bytes
Line 
1-- Create the trigger
2trigger = ScriptTrigger()
3trigger:setName("testflighttrigger")
4trigger:setScript("testflight.lua")
5trigger:setFunction("tick")
6trigger:setActiveOnCreation(true)
7
8-- Add Objects
9thisscript:addObject("GameWorld", "Testlevel")
10
11-- Global Variables
12horizontalmode = false
13
14function tick(timestep)
15  if not horizontalmode then
16    --Testlevel:setPlaymode("Horizontal")
17  end
18end
19
Note: See TracBrowser for help on using the repository browser.