Changeset 4575
- Timestamp:
- Jan 28, 2007, 2:07:31 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/sp_cutscene_intro.oxw
r4574 r4575 30 30 <name>bomberOne</name> 31 31 <model>models/spaceships/human_spaceship_bomber.obj,1.2</model> 32 <abs-coor>-480, 20, -70 </abs-coor>32 <abs-coor>-480, 5, -70 </abs-coor> 33 33 <abs-dir> 0,0,1,0 </abs-dir> 34 <Track> 35 <mode>1</mode> 36 <speed>0.5</speed> 37 <addPoint>-480,5,-70</addPoint> 38 <addPoint>1000,5,-70</addPoint> 39 </Track> 40 </NPC> 41 42 <NPC> 43 <name>fighterOne</name> 44 <model>models/spaceships/human_spaceship_fighter.obj,0.5</model> 45 <abs-coor>-430, 5, -70 </abs-coor> 46 <abs-dir> 0,0,1,0 </abs-dir> 47 <Track> 48 <mode>1</mode> 49 <speed>0.5</speed> 50 <addPoint>-430,5,-70</addPoint> 51 <addPoint>1000,5,-70</addPoint> 52 </Track> 34 53 </NPC> 35 54 … … 39 58 <abs-coor>-490, -10, -60 </abs-coor> 40 59 <abs-dir> 0,0,1,0 </abs-dir> 60 <Track> 61 <mode>1</mode> 62 <speed>0.5</speed> 63 <addPoint>-490,-10,-60</addPoint> 64 <addPoint>1000,-10,-60</addPoint> 65 </Track> 41 66 </NPC> 42 43 <NPC> 44 <name>fighterOne</name> 45 <model>models/spaceships/human_spaceship_fighter.obj,0.5</model> 46 <abs-coor>-430, 15, -70 </abs-coor> 47 <abs-dir> 0,0,1,0 </abs-dir> 48 </NPC> 67 49 68 50 69 <NPC> … … 53 72 <abs-coor>-430, -10, -60 </abs-coor> 54 73 <abs-dir> 0,0,1,0 </abs-dir> 74 <Track> 75 <mode>1</mode> 76 <speed>0.5</speed> 77 <addPoint>-430,-10,-60</addPoint> 78 <addPoint>1000,-10,-60</addPoint> 79 </Track> 55 80 </NPC> 56 81 … … 61 86 <abs-coor>-75, 0, 400</abs-coor> 62 87 <texture>textures/planets/mars.png</texture> 88 <cloud-texture>textures/planets/halo.png</cloud-texture> 63 89 </Planet> 64 90 -
data/trunk/scripts/cutscene/cutscene.lua
r4574 r4575 37 37 thisscript:addObject("CameraMan", "cameraManager") 38 38 thisscript:addObject("NPC", "shutleOne") 39 thisscript:addObject("NPC", "fighterOne")40 thisscript:addObject("NPC", "fighterTwo")41 thisscript:addObject("NPC", "bomberOne")42 thisscript:addObject("NPC", "bomberTwo")43 39 thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld") 44 40 … … 50 46 bInit = 0 51 47 bInit2 = 0 52 fighterSpeed = 1053 bomberSpeed = 1054 55 -- Since the spaceships go along the x direction we only neet to get these once:56 fighterOneY = fighterOne:getAbsCoorY()57 fighterOneZ = fighterOne:getAbsCoorZ()58 59 fighterTwoY = fighterTwo:getAbsCoorY()60 fighterTwoZ = fighterTwo:getAbsCoorZ()61 62 bomberOneY = bomberOne:getAbsCoorY()63 bomberOneZ = bomberOne:getAbsCoorZ()64 65 bomberTwoY = bomberTwo:getAbsCoorY()66 bomberTwoZ = bomberTwo:getAbsCoorZ()67 48 68 49 … … 77 58 coorY = shutleOne:getAbsCoorY() 78 59 coorZ = shutleOne:getAbsCoorZ() 79 shutleOne:setAbsCoor(coorX-6 .5*timestep,coorY,coorZ)60 shutleOne:setAbsCoor(coorX-6*timestep,coorY,coorZ) 80 61 end 81 62 end 82 63 83 64 --} 84 85 86 -- chaseScene87 chaseScene = { }88 --{89 90 function chaseScene:tick(timestep)91 92 93 fighterOneX = fighterOne:getAbsCoorX()94 fighterTwoX = fighterTwo:getAbsCoorX()95 bomberOneX = bomberOne:getAbsCoorX()96 bomberTwoX = bomberTwo:getAbsCoorX()97 98 fighterOne:setAbsCoor(fighterOneX + fighterSpeed*timestep,fighterOneY,fighterOneZ)99 fighterTwo:setAbsCoor(fighterTwoX + fighterSpeed*timestep,fighterTwoY,fighterTwoZ)100 bomberOne:setAbsCoor(bomberOneX + bomberSpeed*timestep,bomberOneY,bomberOneZ)101 bomberTwo:setAbsCoor(bomberTwoX + bomberSpeed*timestep,bomberTwoY,bomberTwoZ)102 103 104 end105 106 --}107 108 65 109 66 … … 134 91 135 92 shutle:tick(timestep) 136 chaseScene:tick(timestep)137 93 138 94 if bInit == 0 then … … 149 105 if not cameraSwitched then 150 106 cameraManager:setCam("CameraOne") 151 --cameraManager:atachCurrCameraToWorldEntity("NPC", " fighterOne")107 --cameraManager:atachCurrCameraToWorldEntity("NPC", "bomberOne") 152 108 cameraManager:changeCurrTarget("Building", "zhara") 153 109 cameraSwitched = true
Note: See TracChangeset
for help on using the changeset viewer.