Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4902


Ignore:
Timestamp:
Jun 19, 2007, 5:20:15 PM (17 years ago)
Author:
snellen
Message:

some enemies

Location:
data/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/vertical_scroller.oxw

    r4899 r4902  
    1616
    1717  <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>
    2418
    2519    <Planet>
    2620      <name>Moon</name>
    27       <texture>textures/planets/mars.png</texture>
     21      <texture>textures/planets/pluto.png</texture>
    2822      <size>100</size>
    2923      <abs-coor>3610, 116, -656</abs-coor>
    3024      <abs-dir>0.3,0,1,0</abs-dir>
    3125    </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>
    3249
    3350    <Rotor>
     
    6279        <ActionBox>45, 25, 450, 6</ActionBox>
    6380        <mode>1</mode>
    64         <speed>50</speed>
     81        <speed>30</speed>
    6582        <addPoint>0,0,0</addPoint>
    6683        <addPoint>219.837738, -0.605457, 37.411240</addPoint>
     
    118135      <Camera>
    119136        <name>cameraOne</name>
    120           <abs-coor>2800,5,50</abs-coor>
     137        <abs-coor>3604.608398, 155.705444, -312.326019</abs-coor>
    121138      </Camera>
    122139    </Cameras>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4899 r4902  
     1--register classes
     2thisscript:registerClass("Explosion")
    13-- Get objects from orxonox
    24thisscript:addObject("SpaceShip", "Player")
     
    68triggerFadeOut = SpaceTrigger()
    79triggerFadeOut:setScript("vs1.lua")
    8 triggerFadeOut:setFunction("fadeOut")
    9 triggerFadeOut:setRadius(250)
     10triggerFadeOut:setFunction("explodeSpaceship")
     11triggerFadeOut:setRadius(280)
    1012triggerFadeOut:setTarget("Player")
    1113triggerFadeOut:setAbsCoor(3610, 116, -656)
    1214triggerFadeOut:setDebugDraw(true)
     15
     16triggerSwitchCam = SpaceTrigger()
     17triggerSwitchCam:setScript("vs1.lua")
     18triggerSwitchCam:setFunction("switchCam")
     19triggerSwitchCam:setRadius(300)
     20triggerSwitchCam:setTarget("Player")
     21triggerSwitchCam:setAbsCoor(3610, 116, -656)
     22triggerSwitchCam:setDebugDraw(true)
    1323
    1424triggerEndLevel = TimeTrigger()
     
    1727triggerEndLevel:setDelay(5)
    1828
    19 teststring = "asdf";
     29--initialisation
     30explosion = Explosion()
     31cameraManager:changeTarget("cameraOne","SpaceShip", "Player")
    2032
    21 function fadeOut(timestep)
    22   cameraManager:toggleFade()
    23   print(teststring)
    24   triggerEndLevel:start()
    25   return true
    26 end
     33-- globals
     34boomSize = 100
     35
    2736
    2837function changeLevel(timestep)
    29   print("changelvl now\n\n\n\n\n\n")
    3038  gameWorld:setNextStoryName("Moonstation")
    3139  gameWorld:stop()
    3240  return true
    3341end
     42
     43
     44function 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
     54end
     55
     56function switchCam(timestep)
     57cameraManager:setCam("cameraOne")
     58cameraManager:jumpCurrCam(3604.608398, 155.705444, -312.326019)
     59return true
     60end
Note: See TracChangeset for help on using the changeset viewer.