Changeset 4722
- Timestamp:
- Jan 31, 2007, 7:48:21 AM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4710 r4722 1 <WorldDataFile> <name>Mission 1</name> 1 <WorldDataFile> 2 <name>Mission 1</name> 2 3 <description>This is the vertical scroller level.</description> 3 4 <menu-item-image>textures/menu/Scienceproject_512x512.jpg</menu-item-image> … … 30 31 <Size>100</Size> 31 32 </Rotor> 32 <!--- --> 33 <Rotor> 34 <name>meteorit01.1</name> 35 <model>models/planets/asteroid_FA48.obj, 18</model> 36 <abs-coor>900,-100,-40</abs-coor> 37 <rotation>1,0,0</rotation> 38 <Size>100</Size> 39 </Rotor> 40 41 42 <Rotor> 43 <name>meteorit01.2</name> 44 <model>models/planets/asteroid_FA48.obj, 16</model> 45 <abs-coor>1160,-50,-50</abs-coor> 46 <rotation>0,2,0</rotation> 47 <Size>100</Size> 48 </Rotor> 49 <Rotor> 50 <name>meteorit01.3</name> 51 <model>models/planets/asteroid_FA48.obj, 5</model> 52 <abs-coor>1150,-100,-25</abs-coor> 53 <rotation>0,6,0</rotation> 54 <Size>100</Size> 55 </Rotor> 56 <Rotor> 57 <name>meteorit01.4</name> 58 <model>models/planets/asteroid_FA48.obj, 10</model> 59 <abs-coor>1240,-100,-10</abs-coor> 60 <rotation>1,2,0</rotation> 61 <Size>100</Size> 62 </Rotor> 63 <Rotor> 64 <name>meteorit01.5</name> 65 <model>models/planets/asteroid_FA48.obj, 25</model> 66 <abs-coor>1170,-100,20</abs-coor> 67 <rotation>0,0.5,0</rotation> 68 <Size>100</Size> 69 </Rotor> 70 <Rotor> <Rotor> 71 <name>meteorit01.6</name> 72 <model>models/planets/asteroid_FA48.obj, 10</model> 73 <abs-coor>1300,-50,-30</abs-coor> 74 <rotation>0,2,0</rotation> 75 <Size>100</Size> 76 </Rotor> 77 <!--- --> 33 34 <Rotor> 78 35 <name>meteorit02</name> 79 36 <model>models/planets/asteroid_FA48.obj, 20</model> 80 37 <abs-coor>1500,-200,40</abs-coor> 81 <rotation>0,0, 2</rotation>38 <rotation>0,0,3</rotation> 82 39 <Size>100</Size> 83 40 </Rotor> … … 235 192 236 193 <NPC> 194 <name>Pirate53</name> 195 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 196 <team>1</team> 197 <swarm>1</swarm> 198 <list>group00</list> 199 <attackDistance>60</attackDistance> 200 <maxSpeed>500</maxSpeed> 201 <Weapons>HeavyBlaster</Weapons> 202 <abs-coor>3450, 0, -20</abs-coor> 203 <abs-dir> 3.14,0,1,0 </abs-dir> 204 </NPC> 205 206 <NPC> 207 <name>Pirate54</name> 208 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 209 <team>1</team> 210 <swarm>1</swarm> 211 <list>group00</list> 212 <attackDistance>60</attackDistance> 213 <maxSpeed>500</maxSpeed> 214 <Weapons>HeavyBlaster</Weapons> 215 <abs-coor>3450, 0, 20</abs-coor> 216 <abs-dir> 3.14,0,1,0 </abs-dir> 217 </NPC> 218 219 220 221 <NPC> 237 222 <name>Pirate04</name> 238 223 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> … … 243 228 <maxSpeed>500</maxSpeed> 244 229 <Weapons>HeavyBlaster</Weapons> 245 <abs-coor>5000, 0, - 10</abs-coor>230 <abs-coor>5000, 0, -30</abs-coor> 246 231 <abs-dir> 3.14,0,1,0 </abs-dir> 247 232 </NPC> … … 256 241 <maxSpeed>500</maxSpeed> 257 242 <Weapons>HeavyBlaster</Weapons> 258 <abs-coor>5000, 0, 10</abs-coor>243 <abs-coor>5000, 0, -40</abs-coor> 259 244 <abs-dir> 3.14,0,1,0 </abs-dir> 260 245 </NPC> … … 269 254 <maxSpeed>500</maxSpeed> 270 255 <Weapons>HeavyBlaster</Weapons> 271 <abs-coor>4960, 0, 0</abs-coor> 272 <abs-dir> 3.14,0,1,0 </abs-dir> 273 </NPC> 256 <abs-coor>4960, 0, -40</abs-coor> 257 <abs-dir> 3.14,0,1,0 </abs-dir> 258 </NPC> 259 260 <NPC> 261 <name>Pirate56</name> 262 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 263 <team>2</team> 264 <swarm>2</swarm> 265 <list>group00</list> 266 <attackDistance>60</attackDistance> 267 <maxSpeed>500</maxSpeed> 268 <Weapons>HeavyBlaster</Weapons> 269 <abs-coor>4980, 0, -40</abs-coor> 270 <abs-dir> 3.14,0,1,0 </abs-dir> 271 </NPC> 272 273 <NPC> 274 <name>Pirate57</name> 275 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 276 <team>2</team> 277 <swarm>2</swarm> 278 <list>group00</list> 279 <attackDistance>60</attackDistance> 280 <maxSpeed>500</maxSpeed> 281 <Weapons>HeavyBlaster</Weapons> 282 <abs-coor>4980, 0, 40</abs-coor> 283 <abs-dir> 3.14,0,1,0 </abs-dir> 284 </NPC> 285 286 274 287 275 288 <NPC> … … 282 295 <maxSpeed>500</maxSpeed> 283 296 <Weapons>HeavyBlaster</Weapons> 284 <abs-coor>6000, 0, - 40</abs-coor>297 <abs-coor>6000, 0, -200</abs-coor> 285 298 <abs-dir> 3.14,0,1,0 </abs-dir> 286 299 </NPC> … … 294 307 <maxSpeed>500</maxSpeed> 295 308 <Weapons>HeavyBlaster</Weapons> 296 <abs-coor>6010, 0, - 30</abs-coor>309 <abs-coor>6010, 0, -205</abs-coor> 297 310 <abs-dir> 3.14,0,1,0 </abs-dir> 298 311 </NPC> … … 306 319 <maxSpeed>500</maxSpeed> 307 320 <Weapons>HeavyBlaster</Weapons> 308 <abs-coor>6010, 0, -50</abs-coor> 309 <abs-dir> 3.14,0,1,0 </abs-dir> 310 </NPC> 321 <abs-coor>6010, 0, -195</abs-coor> 322 <abs-dir> 3.14,0,1,0 </abs-dir> 323 </NPC> 324 325 <NPC> 326 <name>Pirate59</name> 327 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 328 <team>2</team> 329 <swarm>3</swarm> 330 <list>group00</list> 331 <attackDistance>60</attackDistance> 332 <maxSpeed>500</maxSpeed> 333 <Weapons>HeavyBlaster</Weapons> 334 <abs-coor>6020, 0, -210</abs-coor> 335 <abs-dir> 3.14,0,1,0 </abs-dir> 336 </NPC> 337 338 <NPC> 339 <name>Pirate49</name> 340 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 341 <team>2</team> 342 <swarm>3</swarm> 343 <list>group00</list> 344 <attackDistance>60</attackDistance> 345 <maxSpeed>500</maxSpeed> 346 <Weapons>HeavyBlaster</Weapons> 347 <abs-coor>6020, 0, -220</abs-coor> 348 <abs-dir> 3.14,0,1,0 </abs-dir> 349 </NPC> 350 351 <NPC> 352 <name>Pirate79</name> 353 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 354 <team>2</team> 355 <swarm>3</swarm> 356 <list>group00</list> 357 <attackDistance>60</attackDistance> 358 <maxSpeed>500</maxSpeed> 359 <Weapons>HeavyBlaster</Weapons> 360 <abs-coor>6010, 0, -185</abs-coor> 361 <abs-dir> 3.14,0,1,0 </abs-dir> 362 </NPC> 363 364 311 365 312 366 <NPC> … … 316 370 <Track> 317 371 <mode>0</mode> 318 <speed> 55</speed>372 <speed>60</speed> 319 373 <addPoint>3600,-100,200</addPoint> 320 374 <addPoint>3700,-100,100</addPoint> … … 330 384 <name>Ragnar02</name> 331 385 <model>models/spaceships/pirates_spaceship_ragnar.obj,6</model> 332 <abs-coor>7000, 0, - 350</abs-coor>386 <abs-coor>7000, 0, -500</abs-coor> 333 387 <abs-dir> 1,5,0,1,0 </abs-dir> 334 388 <team>3</team> 335 389 <swarm>1</swarm> 336 390 <list>group00</list> 337 <attackDistance> 50</attackDistance>391 <attackDistance>60</attackDistance> 338 392 <Weapons>HeavyBlaster</Weapons> 339 393 <maxSpeed>400</maxSpeed> … … 349 403 <maxSpeed>500</maxSpeed> 350 404 <Weapons>HeavyBlaster</Weapons> 351 <abs-coor>7500, 0, -1 000</abs-coor>405 <abs-coor>7500, 0, -1145</abs-coor> 352 406 <abs-dir> 3.14,0,1,0 </abs-dir> 353 407 </NPC> … … 355 409 <NPC> 356 410 <name>Noxon02</name> 357 <model>models/spaceships/noxon_spaceship_ fighter.obj,1</model>411 <model>models/spaceships/noxon_spaceship_scout.obj,1</model> 358 412 <team>2</team> 359 413 <swarm>3</swarm> … … 362 416 <maxSpeed>500</maxSpeed> 363 417 <Weapons>HeavyBlaster</Weapons> 364 <abs-coor>75 00, 0, -1010</abs-coor>418 <abs-coor>7510, 0, -1150</abs-coor> 365 419 <abs-dir> 3.14,0,1,0 </abs-dir> 366 420 </NPC> … … 368 422 <NPC> 369 423 <name>Noxon03</name> 370 <model>models/spaceships/noxon_spaceship_ fighter.obj,1</model>424 <model>models/spaceships/noxon_spaceship_scout.obj,1</model> 371 425 <team>2</team> 372 426 <swarm>3</swarm> … … 375 429 <maxSpeed>500</maxSpeed> 376 430 <Weapons>HeavyBlaster</Weapons> 377 <abs-coor>75 00, 0, -990</abs-coor>431 <abs-coor>7520, 0, -1155</abs-coor> 378 432 <abs-dir> 3.14,0,1,0 </abs-dir> 379 433 </NPC> … … 387 441 <maxSpeed>500</maxSpeed> 388 442 <Weapons>HeavyBlaster</Weapons> 389 <abs-coor>75 50, 0, -1020</abs-coor>443 <abs-coor>7530, 0, -1160</abs-coor> 390 444 <abs-dir> 3.14,0,1,0 </abs-dir> 391 445 </NPC> … … 399 453 <maxSpeed>500</maxSpeed> 400 454 <Weapons>HeavyBlaster</Weapons> 401 <abs-coor>75 50, 0, -980</abs-coor>455 <abs-coor>7540, 0, -1147</abs-coor> 402 456 <abs-dir> 3.14,0,1,0 </abs-dir> 403 457 </NPC> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4710 r4722 6 6 thisscript:addObject("NPC", "Ragnar01") 7 7 thisscript:addObject("NPC", "Ragnar02") 8 8 9 thisscript:addObject("NPC", "Pirate01") 9 10 thisscript:addObject("NPC", "Pirate02") 10 11 thisscript:addObject("NPC", "Pirate03") 12 thisscript:addObject("NPC", "Pirate53") 13 thisscript:addObject("NPC", "Pirate54") 14 11 15 thisscript:addObject("NPC", "Pirate04") 12 16 thisscript:addObject("NPC", "Pirate05") 13 17 thisscript:addObject("NPC", "Pirate06") 18 thisscript:addObject("NPC", "Pirate56") 19 thisscript:addObject("NPC", "Pirate57") 20 14 21 thisscript:addObject("NPC", "Pirate07") 15 22 thisscript:addObject("NPC", "Pirate08") 16 23 thisscript:addObject("NPC", "Pirate09") 24 thisscript:addObject("NPC", "Pirate59") 25 thisscript:addObject("NPC", "Pirate49") 26 thisscript:addObject("NPC", "Pirate79") 17 27 18 28 -- The Noxons … … 71 81 triggerRagnar:setRadius(50) 72 82 triggerRagnar:setTarget("Player") 73 triggerRagnar:setAbsCoor(3600 , 0 , -1 0)83 triggerRagnar:setAbsCoor(3600 , 0 , -15) 74 84 triggerRagnar:setDebugDraw(true) 75 85 triggerRagnar:setActiveOnCreation(false) … … 91 101 triggerAI02:setRadius(50) 92 102 triggerAI02:setTarget("Player") 93 triggerAI02:setAbsCoor(4900, 0, 0)103 triggerAI02:setAbsCoor(4900, 0, -45) 94 104 triggerAI02:setDebugDraw(true) 95 105 triggerAI02:setActiveOnCreation(false) … … 101 111 triggerAI03:setRadius(50) 102 112 triggerAI03:setTarget("Player") 103 triggerAI03:setAbsCoor(5850, 0, - 70)113 triggerAI03:setAbsCoor(5850, 0, -170) 104 114 triggerAI03:setDebugDraw(true) 105 115 triggerAI03:setActiveOnCreation(false) … … 111 121 triggerAI04:setRadius(50) 112 122 triggerAI04:setTarget("Player") 113 triggerAI04:setAbsCoor(6500, 0, - 200)123 triggerAI04:setAbsCoor(6500, 0, -400) 114 124 triggerAI04:setDebugDraw(true) 115 125 triggerAI04:setActiveOnCreation(false) … … 125 135 time = 0 126 136 137 -- init function 127 138 function init(timestep) 128 139 -- cameraManager:setCam("GameWorld-Camera") 129 140 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01") 130 141 cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01") 131 cameraManager:setRelCoor("CameraOne", 10, 8 , 5)142 cameraManager:setRelCoor("CameraOne", 10, 8 , -5) 132 143 cameraManager:setRelCoor("CameraTwo", 10, 8 , 5) 133 --Player:setCameraDistance(100)134 144 135 145 136 146 Ragnar01:pause(true) 137 -- cameraManager:changeTarget("CameraOne", "NPC", "Pirate01")138 -- cameraManager:jumpCam("CameraOne", 3300, 0, 50)139 147 140 148 return true … … 145 153 Player:pause(true) 146 154 cameraManager:setCam("CameraOne") 147 -- gameWorld:showText("Kill those traitorous bastards")148 -- cameraManager:changeCurrTarget("NPC", "Pirate01")149 -- cameraManager:atachCurrCameraToWorldEntity("NPC", "Pirate01")150 155 cutsceneRunning = true 151 156 return true … … 186 191 Pirate02:setAI(true) 187 192 Pirate03:setAI(true) 193 Pirate53:setAI(true) 194 Pirate54:setAI(true) 188 195 189 196 return true … … 196 203 Pirate05:setAI(true) 197 204 Pirate06:setAI(true) 205 Pirate56:setAI(true) 206 Pirate57:setAI(true) 198 207 199 208 return true … … 206 215 Pirate08:setAI(true) 207 216 Pirate09:setAI(true) 217 Pirate59:setAI(true) 218 Pirate49:setAI(true) 219 Pirate79:setAI(true) 208 220 209 221 return true … … 215 227 Ragnar02:setAI(true) 216 228 bossFight = true 217 Player:setCameraDist(100)218 229 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 120, 0) 230 Player:pause(true) 219 231 return true 220 232 end … … 236 248 end 237 249 250 238 251 function onNoxons(timestep) 239 252 240 253 if bossFightEnd then 241 254 cameraManager:setCam("CameraTwo") 242 Player:pause(true)243 255 end 244 256 … … 246 258 return cutscene2End 247 259 end 260 261 262 function ragnarBoom(timestep) 263 Ragnar01:destroy() 264 return true 265 end
Note: See TracChangeset
for help on using the changeset viewer.