Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4575


Ignore:
Timestamp:
Jan 28, 2007, 2:07:31 PM (18 years ago)
Author:
snellen
Message:

continued cutscene

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4574 r4575  
    3030          <name>bomberOne</name>
    3131          <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>
    3333          <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>
    3453        </NPC>
    3554
     
    3958          <abs-coor>-490, -10, -60 </abs-coor>
    4059          <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>
    4166        </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       
    4968
    5069        <NPC>
     
    5372          <abs-coor>-430, -10, -60 </abs-coor>
    5473          <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>
    5580        </NPC>
    5681
     
    6186            <abs-coor>-75, 0, 400</abs-coor>
    6287            <texture>textures/planets/mars.png</texture>
     88            <cloud-texture>textures/planets/halo.png</cloud-texture>
    6389          </Planet>
    6490
  • data/trunk/scripts/cutscene/cutscene.lua

    r4574 r4575  
    3737thisscript:addObject("CameraMan", "cameraManager")
    3838thisscript:addObject("NPC", "shutleOne")
    39 thisscript:addObject("NPC", "fighterOne")
    40 thisscript:addObject("NPC", "fighterTwo")
    41 thisscript:addObject("NPC", "bomberOne")
    42 thisscript:addObject("NPC", "bomberTwo")
    4339thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld")
    4440
     
    5046bInit = 0
    5147bInit2 = 0
    52 fighterSpeed = 10
    53 bomberSpeed = 10
    54 
    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()
    6748
    6849
     
    7758  coorY = shutleOne:getAbsCoorY()
    7859  coorZ = shutleOne:getAbsCoorZ()
    79   shutleOne:setAbsCoor(coorX-6.5*timestep,coorY,coorZ)
     60  shutleOne:setAbsCoor(coorX-6*timestep,coorY,coorZ)
    8061 end
    8162 end
    8263
    8364 --}
    84 
    85 
    86 -- chaseScene
    87 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  end
    105 
    106  --}
    107 
    10865
    10966
     
    13491
    13592shutle:tick(timestep)
    136 chaseScene:tick(timestep)
    13793
    13894if bInit == 0 then
     
    149105if not cameraSwitched then
    150106cameraManager:setCam("CameraOne")
    151 --cameraManager:atachCurrCameraToWorldEntity("NPC", "fighterOne")
     107--cameraManager:atachCurrCameraToWorldEntity("NPC", "bomberOne")
    152108cameraManager:changeCurrTarget("Building", "zhara")
    153109cameraSwitched = true
Note: See TracChangeset for help on using the changeset viewer.