Changeset 4902
- Timestamp:
- Jun 19, 2007, 5:20:15 PM (17 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4899 r4902 16 16 17 17 <WorldEntities> 18 <Building>19 <name>zhara</name>20 <model>models/space_stations/ZHARA_Space_Station.obj,30</model>21 <abs-coor>-20,0,30</abs-coor>22 <abs-dir>0.3,0,1,0</abs-dir>23 </Building>24 18 25 19 <Planet> 26 20 <name>Moon</name> 27 <texture>textures/planets/ mars.png</texture>21 <texture>textures/planets/pluto.png</texture> 28 22 <size>100</size> 29 23 <abs-coor>3610, 116, -656</abs-coor> 30 24 <abs-dir>0.3,0,1,0</abs-dir> 31 25 </Planet> 26 27 <ActionboxEnemy> 28 <name>Noxon01</name> 29 <model>models/spaceships/noxon_spaceship_fighter.obj,0.2</model> 30 <abs-coor>895.826904, 118.867111, -283.239410</abs-coor> 31 <abs-dir> 0.193116, -0.090633, -0.976817, 0.017918 </abs-dir> 32 </ActionboxEnemy> 33 34 35 <ActionboxEnemy> 36 <name>Noxon02</name> 37 <model>models/spaceships/noxon_spaceship_fighter.obj,0.2</model> 38 <abs-coor>932.626221, 154.866180, -131.888626</abs-coor> 39 <abs-dir> 0.193116, -0.090633, -0.976817, 0.017918</abs-dir> 40 </ActionboxEnemy> 41 42 43 <ActionboxEnemy> 44 <name>Noxon03</name> 45 <model>models/spaceships/noxon_spaceship_fighter.obj,0.2</model> 46 <abs-coor>1154.911621, 127.052818, -38.380138</abs-coor> 47 <abs-dir> </abs-dir> 48 </ActionboxEnemy> 32 49 33 50 <Rotor> … … 62 79 <ActionBox>45, 25, 450, 6</ActionBox> 63 80 <mode>1</mode> 64 <speed> 50</speed>81 <speed>30</speed> 65 82 <addPoint>0,0,0</addPoint> 66 83 <addPoint>219.837738, -0.605457, 37.411240</addPoint> … … 118 135 <Camera> 119 136 <name>cameraOne</name> 120 <abs-coor>2800,5,50</abs-coor>137 <abs-coor>3604.608398, 155.705444, -312.326019</abs-coor> 121 138 </Camera> 122 139 </Cameras> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4899 r4902 1 --register classes 2 thisscript:registerClass("Explosion") 1 3 -- Get objects from orxonox 2 4 thisscript:addObject("SpaceShip", "Player") … … 6 8 triggerFadeOut = SpaceTrigger() 7 9 triggerFadeOut:setScript("vs1.lua") 8 triggerFadeOut:setFunction(" fadeOut")9 triggerFadeOut:setRadius(2 50)10 triggerFadeOut:setFunction("explodeSpaceship") 11 triggerFadeOut:setRadius(280) 10 12 triggerFadeOut:setTarget("Player") 11 13 triggerFadeOut:setAbsCoor(3610, 116, -656) 12 14 triggerFadeOut:setDebugDraw(true) 15 16 triggerSwitchCam = SpaceTrigger() 17 triggerSwitchCam:setScript("vs1.lua") 18 triggerSwitchCam:setFunction("switchCam") 19 triggerSwitchCam:setRadius(300) 20 triggerSwitchCam:setTarget("Player") 21 triggerSwitchCam:setAbsCoor(3610, 116, -656) 22 triggerSwitchCam:setDebugDraw(true) 13 23 14 24 triggerEndLevel = TimeTrigger() … … 17 27 triggerEndLevel:setDelay(5) 18 28 19 teststring = "asdf"; 29 --initialisation 30 explosion = Explosion() 31 cameraManager:changeTarget("cameraOne","SpaceShip", "Player") 20 32 21 function fadeOut(timestep) 22 cameraManager:toggleFade() 23 print(teststring) 24 triggerEndLevel:start() 25 return true 26 end 33 -- globals 34 boomSize = 100 35 27 36 28 37 function changeLevel(timestep) 29 print("changelvl now\n\n\n\n\n\n")30 38 gameWorld:setNextStoryName("Moonstation") 31 39 gameWorld:stop() 32 40 return true 33 41 end 42 43 44 function explodeSpaceship(timestep) 45 explosion:setAbsCoor(Player:getAbsCoorX(),Player:getAbsCoorY(),Player:getAbsCoorZ()) 46 explosion:explode(boomSize,boomSize,boomSize) 47 boomSize = boomSize + 10 48 if boomSize == 600 then 49 triggerEndLevel:start() 50 cameraManager:toggleFade() 51 return true 52 end 53 return false 54 end 55 56 function switchCam(timestep) 57 cameraManager:setCam("cameraOne") 58 cameraManager:jumpCurrCam(3604.608398, 155.705444, -312.326019) 59 return true 60 end
Note: See TracChangeset
for help on using the changeset viewer.