Changeset 4652 for data/trunk
- Timestamp:
- Jan 30, 2007, 6:17:00 AM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4650 r4652 88 88 </Rotor> 89 89 90 <Rotor> 91 <name>meteorit09</name> 92 <model>models/planets/asteroid_FA108.obj, 15</model> 93 <abs-coor>3700,-400,-10</abs-coor> 94 <rotation>0,1,3</rotation> 95 <Size>100</Size> 96 </Rotor> 97 98 <Rotor> 99 <name>meteorit10</name> 100 <model>models/planets/asteroid_FA48.obj, 10</model> 101 <abs-coor>3800,-500,20</abs-coor> 102 <rotation>1,2,0</rotation> 103 <Size>100</Size> 104 </Rotor> 105 106 <Rotor> 107 <name>meteorit11</name> 108 <model>models/planets/asteroid_FA108.obj, 20</model> 109 <abs-coor>4000,-600,-20</abs-coor> 110 <rotation>3,4,0</rotation> 111 <Size>100</Size> 112 </Rotor> 113 114 <Rotor> 115 <name>meteorit12</name> 116 <model>models/planets/asteroid_FA48.obj, 5</model> 117 <abs-coor>4200,-50,20</abs-coor> 118 <rotation>1,0,5</rotation> 119 <Size>100</Size> 120 </Rotor> 121 122 <Rotor> 123 <name>meteorit13</name> 124 <model>models/planets/asteroid_FA108.obj, 20</model> 125 <abs-coor>4500,-500,30</abs-coor> 126 <rotation>2,1,0</rotation> 127 <Size>100</Size> 128 </Rotor> 129 130 <Rotor> 131 <name>meteorit14</name> 132 <model>models/planets/asteroid_FA48.obj, 15</model> 133 <abs-coor>4700,-300,20</abs-coor> 134 <rotation>0,6,2</rotation> 135 <Size>100</Size> 136 </Rotor> 137 138 <Rotor> 139 <name>meteorit15</name> 140 <model>models/planets/asteroid_FA108.obj, 20</model> 141 <abs-coor>5000,-800,40</abs-coor> 142 <rotation>1,1,0</rotation> 143 <Size>100</Size> 144 </Rotor> 145 146 <Rotor> 147 <name>meteorit16</name> 148 <model>models/planets/asteroid_FA108.obj, 15</model> 149 <abs-coor>5200,-400,30</abs-coor> 150 <rotation>0,2,3</rotation> 151 <Size>100</Size> 152 </Rotor> 153 90 154 <NPC> 91 155 <name>Pirate01</name> 92 156 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 93 <enableAI>1</enableAI>157 <!-- <enableAI>1</enableAI> --> 94 158 <team>1</team> 95 159 <swarm>1</swarm> 96 <attackDistance> 1</attackDistance>160 <attackDistance>0.5</attackDistance> 97 161 <maxSpeed>500</maxSpeed> 98 162 <Weapons> … … 105 169 </Weapons> 106 170 <abs-coor>3500, 0, -20</abs-coor> 107 <abs-dir> 1.5, 0,1,0</abs-dir>171 <abs-dir>3.14 , 0,1,0</abs-dir> 108 172 </NPC> 109 173 … … 111 175 <name>Pirate02</name> 112 176 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 113 <enableAI>1</enableAI>177 <!-- <enableAI>1</enableAI> --> 114 178 <team>1</team> 115 179 <swarm>1</swarm> 116 <attackDistance> 1</attackDistance>180 <attackDistance>0.5</attackDistance> 117 181 <maxSpeed>500</maxSpeed> 118 182 <Weapons>HeavyBlaster</Weapons> … … 124 188 <name>Pirate03</name> 125 189 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 126 <enableAI>1</enableAI>190 <!-- <enableAI>1</enableAI> --> 127 191 <team>1</team> 128 192 <swarm>1</swarm> 129 <attackDistance> 5</attackDistance>193 <attackDistance>0.5</attackDistance> 130 194 <maxSpeed>500</maxSpeed> 131 195 <Weapons>HeavyBlaster</Weapons> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4647 r4652 15 15 triggerCutscene:setRadius(50) 16 16 triggerCutscene:setTarget("Player") 17 triggerCutscene:setAbsCoor( 3000 , 0 , -10)17 triggerCutscene:setAbsCoor(2300 , 0 , 10) 18 18 triggerCutscene:setDebugDraw(true) 19 19 triggerCutscene:setActiveOnCreation(false) 20 20 21 -- Create another cutscene trigger 22 triggerCutscene02 = ScriptTrigger() 23 triggerCutscene02:setScript("vs1.lua") 24 triggerCutscene02:setFunction("switchToOtherPirate") 25 triggerCutscene02:setActiveOnCreation(true) 21 26 22 27 -- Global Variables 28 counter = 0 29 cutsceneRunning = false 30 cutsceneEnd = false 23 31 24 32 function init(timestep) 25 33 -- cameraManager:setCam("GameWorld-Camera") 26 34 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01") 27 cameraManager:setRelCoor("CameraOne", 6.5, 3.3, 3.3)35 cameraManager:setRelCoor("CameraOne", 8, 4 , 3.3) 28 36 -- cameraManager:changeTarget("CameraOne", "NPC", "Pirate01") 29 -- cameraManager:jumpCam("CameraOne", 3 400, 0, 50)37 -- cameraManager:jumpCam("CameraOne", 3300, 0, 50) 30 38 31 39 return true … … 34 42 function startSequence(timestep) 35 43 36 --cameraManager:setCam("CameraOne")44 cameraManager:setCam("CameraOne") 37 45 -- gameWorld:showText("Kill those traitorous bastards") 38 46 -- cameraManager:changeCurrTarget("NPC", "Pirate01") 39 47 -- cameraManager:atachCurrCameraToWorldEntity("NPC", "Pirate01") 40 48 cutsceneRunning = true 41 49 return true 42 50 end 51 52 function switchToOtherPirate(timestep) 53 54 if cutsceneRunning then 55 counter = counter + timestep 56 end 57 58 if counter > 6 and counter < 7 then 59 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03") 60 cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5) 61 end 62 63 if counter > 17 then 64 cutsceneEnd = true 65 cameraManager:setCam("GameWorld-Camera") 66 end 67 68 69 return cutsceneEnd 70 end
Note: See TracChangeset
for help on using the changeset viewer.