Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/vertical_scroller/vs1.lua @ 4900

Last change on this file since 4900 was 4899, checked in by stefalie, 17 years ago

vertical scroller lvl

File size: 903 bytes
Line 
1-- Get objects from orxonox
2thisscript:addObject("SpaceShip", "Player")
3thisscript:addObject("CameraMan", "cameraManager")
4thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
5
6triggerFadeOut = SpaceTrigger()
7triggerFadeOut:setScript("vs1.lua")
8triggerFadeOut:setFunction("fadeOut")
9triggerFadeOut:setRadius(250)
10triggerFadeOut:setTarget("Player")
11triggerFadeOut:setAbsCoor(3610, 116, -656)
12triggerFadeOut:setDebugDraw(true)
13
14triggerEndLevel = TimeTrigger()
15triggerEndLevel:setScript("vs1.lua")
16triggerEndLevel:setFunction("changeLevel")
17triggerEndLevel:setDelay(5)
18
19teststring = "asdf";
20
21function fadeOut(timestep)
22  cameraManager:toggleFade()
23  print(teststring)
24  triggerEndLevel:start()
25  return true
26end
27
28function changeLevel(timestep)
29  print("changelvl now\n\n\n\n\n\n")
30  gameWorld:setNextStoryName("Moonstation")
31  gameWorld:stop()
32  return true
33end
Note: See TracBrowser for help on using the repository browser.