Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4652


Ignore:
Timestamp:
Jan 30, 2007, 6:17:00 AM (18 years ago)
Author:
bknecht
Message:

Let's cutscene ;) That freakin' stuff works finally. Just have a look :)

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4650 r4652  
    8888    </Rotor>
    8989
     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
    90154    <NPC>
    91155      <name>Pirate01</name>
    92156      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    93       <enableAI>1</enableAI>
     157<!--      <enableAI>1</enableAI> -->
    94158      <team>1</team>
    95159      <swarm>1</swarm>
    96       <attackDistance>1</attackDistance>
     160      <attackDistance>0.5</attackDistance>
    97161      <maxSpeed>500</maxSpeed>
    98162      <Weapons>
     
    105169      </Weapons>
    106170      <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>
    108172    </NPC>
    109173
     
    111175      <name>Pirate02</name>
    112176      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    113       <enableAI>1</enableAI>
     177<!--      <enableAI>1</enableAI> -->
    114178      <team>1</team>
    115179      <swarm>1</swarm>
    116       <attackDistance>1</attackDistance>
     180      <attackDistance>0.5</attackDistance>
    117181      <maxSpeed>500</maxSpeed>
    118182      <Weapons>HeavyBlaster</Weapons>
     
    124188      <name>Pirate03</name>
    125189      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    126       <enableAI>1</enableAI>
     190<!--      <enableAI>1</enableAI>  -->
    127191      <team>1</team>
    128192      <swarm>1</swarm>
    129       <attackDistance>5</attackDistance>
     193      <attackDistance>0.5</attackDistance>
    130194      <maxSpeed>500</maxSpeed>
    131195      <Weapons>HeavyBlaster</Weapons>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4647 r4652  
    1515triggerCutscene:setRadius(50)
    1616triggerCutscene:setTarget("Player")
    17 triggerCutscene:setAbsCoor(3000 , 0 , -10)
     17triggerCutscene:setAbsCoor(2300 , 0 , 10)
    1818triggerCutscene:setDebugDraw(true)
    1919triggerCutscene:setActiveOnCreation(false)
    2020
     21-- Create another cutscene trigger
     22triggerCutscene02 = ScriptTrigger()
     23triggerCutscene02:setScript("vs1.lua")
     24triggerCutscene02:setFunction("switchToOtherPirate")
     25triggerCutscene02:setActiveOnCreation(true)
    2126
    2227-- Global Variables
     28counter = 0
     29cutsceneRunning = false
     30cutsceneEnd = false
    2331
    2432function init(timestep)
    2533-- cameraManager:setCam("GameWorld-Camera")
    2634cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
    27 cameraManager:setRelCoor("CameraOne", 6.5, 3.3 , 3.3)
     35cameraManager:setRelCoor("CameraOne", 8, 4 , 3.3)
    2836-- cameraManager:changeTarget("CameraOne", "NPC", "Pirate01")
    29 -- cameraManager:jumpCam("CameraOne", 3400, 0, 50)
     37-- cameraManager:jumpCam("CameraOne", 3300, 0, 50)
    3038
    3139return true
     
    3442function startSequence(timestep)
    3543
    36 -- cameraManager:setCam("CameraOne")
     44cameraManager:setCam("CameraOne")
    3745-- gameWorld:showText("Kill those traitorous bastards")
    3846-- cameraManager:changeCurrTarget("NPC", "Pirate01")
    3947-- cameraManager:atachCurrCameraToWorldEntity("NPC", "Pirate01")
    40 
     48cutsceneRunning = true
    4149return true
    4250end
     51
     52function switchToOtherPirate(timestep)
     53
     54if cutsceneRunning then
     55counter = counter + timestep
     56end
     57
     58if counter > 6 and counter < 7 then
     59cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03")
     60cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5)
     61end
     62
     63if counter > 17 then
     64cutsceneEnd = true
     65cameraManager:setCam("GameWorld-Camera")
     66end
     67
     68
     69return cutsceneEnd
     70end
Note: See TracChangeset for help on using the changeset viewer.