Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4574 for data


Ignore:
Timestamp:
Jan 28, 2007, 1:22:43 PM (18 years ago)
Author:
snellen
Message:
 
Location:
data/trunk
Files:
2 edited

Legend:

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

    r4571 r4574  
    2727        </NPC>
    2828
     29        <NPC>
     30          <name>bomberOne</name>
     31          <model>models/spaceships/human_spaceship_bomber.obj,1.2</model>
     32          <abs-coor>-480, 20, -70 </abs-coor>
     33          <abs-dir> 0,0,1,0 </abs-dir>
     34        </NPC>
     35
     36        <NPC>
     37          <name>bomberTwo</name>
     38          <model>models/spaceships/human_spaceship_bomber.obj,1,2</model>
     39          <abs-coor>-490, -10, -60 </abs-coor>
     40          <abs-dir> 0,0,1,0 </abs-dir>
     41        </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>
     49
     50        <NPC>
     51          <name>fighterTwo</name>
     52          <model>models/spaceships/human_spaceship_fighter.obj,0.5</model>
     53          <abs-coor>-430, -10, -60 </abs-coor>
     54          <abs-dir> 0,0,1,0 </abs-dir>
     55        </NPC>
     56
     57
    2958        <Planet>
    3059            <name>Earth</name>
     
    3766         <name>Moon</name>
    3867         <texture>textures/planets/pluto.png</texture>
    39          <size>35</size>
    40          <abs-coor> -500, 0 , 200</abs-coor>
     68         <size>25</size>
     69         <abs-coor> 100, 0 , -225</abs-coor>
    4170         <abs-dir>3.1412, 0,1,0</abs-dir>
    4271        </Planet>
     
    86115    <Camera>
    87116     <name> CameraOne </name>
    88      <abs-coor>0,0,-200</abs-coor>
     117     <abs-coor>125,0,-245</abs-coor>
    89118     <Track>
    90119       <mode>1</mode>
    91120       <speed>0.1</speed>
    92        <addPoint>0,0,-200</addPoint>
     121       <addPoint>125,0,-245</addPoint>
     122       <addPoint>125,0,-250</addPoint>
     123       <addPoint>0,0,-250</addPoint>
    93124       <addPoint>0,0,-150</addPoint>
    94125       <addPoint>0,0,-100</addPoint>
  • data/trunk/scripts/cutscene/cutscene.lua

    r4570 r4574  
    99triggerOne:setScript("cutscene.lua")
    1010triggerOne:setFunction("switchCamTargetToEarth")
    11 triggerOne:setAbsCoor(0 , 0 , -50)
     11triggerOne:setAbsCoor(0 , 0 , 0)
    1212triggerOne:setTarget("CameraOne")
    1313triggerOne:setRadius(10)
     
    3737thisscript:addObject("CameraMan", "cameraManager")
    3838thisscript:addObject("NPC", "shutleOne")
     39thisscript:addObject("NPC", "fighterOne")
     40thisscript:addObject("NPC", "fighterTwo")
     41thisscript:addObject("NPC", "bomberOne")
     42thisscript:addObject("NPC", "bomberTwo")
    3943thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld")
    4044
     
    4650bInit = 0
    4751bInit2 = 0
     52fighterSpeed = 10
     53bomberSpeed = 10
     54
     55-- Since the spaceships go along the x direction we only neet to get these once:
     56fighterOneY = fighterOne:getAbsCoorY()
     57fighterOneZ = fighterOne:getAbsCoorZ()
     58
     59fighterTwoY = fighterTwo:getAbsCoorY()
     60fighterTwoZ = fighterTwo:getAbsCoorZ()
     61 
     62bomberOneY = bomberOne:getAbsCoorY()
     63bomberOneZ = bomberOne:getAbsCoorZ()
     64
     65bomberTwoY = bomberTwo:getAbsCoorY()
     66bomberTwoZ = bomberTwo:getAbsCoorZ()
    4867
    4968
     
    5372
    5473 function shutle:tick(timestep)
     74
    5575 if cameraManager:getCurrCameraCoorZ() > 0 then
    5676  coorX = shutleOne:getAbsCoorX()
    5777  coorY = shutleOne:getAbsCoorY()
    5878  coorZ = shutleOne:getAbsCoorZ()
    59   shutleOne:setAbsCoor(coorX-.06,coorY,coorZ)
     79  shutleOne:setAbsCoor(coorX-6.5*timestep,coorY,coorZ)
    6080 end
     81 end
     82
     83 --}
     84
     85
     86-- chaseScene
     87chaseScene = { }
     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 
    61104 end
    62105
     
    91134
    92135shutle:tick(timestep)
     136chaseScene:tick(timestep)
    93137
    94138if bInit == 0 then
     
    105149if not cameraSwitched then
    106150cameraManager:setCam("CameraOne")
    107 --cameraManager:atachCurrCameraToWorldEntity("NPC", "shutleOne")
    108 cameraManager:changeCurrTarget("Planet", "Moon")
     151--cameraManager:atachCurrCameraToWorldEntity("NPC", "fighterOne")
     152cameraManager:changeCurrTarget("Building", "zhara")
    109153cameraSwitched = true
    110154end
Note: See TracChangeset for help on using the changeset viewer.