Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4694


Ignore:
Timestamp:
Jan 31, 2007, 1:25:36 AM (18 years ago)
Author:
bknecht
Message:

vertical_scroller update

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4682 r4694  
    288288      <model>models/spaceships/pirates_spaceship_ragnar.obj,6</model>
    289289      <abs-coor>7000, 0, -350</abs-coor>
     290      <abs-dir> 1,5,0,1,0 </abs-dir>
    290291      <team>3</team>
    291292      <swarm>1</swarm>
     
    294295      <Weapons>HeavyBlaster</Weapons>
    295296      <maxSpeed>400</maxSpeed>
     297    </NPC>
     298
     299    <NPC>
     300      <name>Noxon01</name>
     301      <model>models/spaceships/noxon_spaceship_fighter.obj,1</model>
     302      <team>2</team>
     303      <swarm>3</swarm>
     304      <list>OM_GROUP_02</list>
     305      <attackDistance>60</attackDistance>
     306      <maxSpeed>500</maxSpeed>
     307      <Weapons>HeavyBlaster</Weapons>
     308      <abs-coor>7500, 0, -1000</abs-coor>
     309      <abs-dir> 3.14,0,1,0 </abs-dir>
     310    </NPC>
     311
     312    <NPC>
     313      <name>Noxon02</name>
     314      <model>models/spaceships/noxon_spaceship_fighter.obj,1</model>
     315      <team>2</team>
     316      <swarm>3</swarm>
     317      <list>OM_GROUP_02</list>
     318      <attackDistance>60</attackDistance>
     319      <maxSpeed>500</maxSpeed>
     320      <Weapons>HeavyBlaster</Weapons>
     321      <abs-coor>7500, 0, -1010</abs-coor>
     322      <abs-dir> 3.14,0,1,0 </abs-dir>
     323    </NPC>
     324
     325    <NPC>
     326      <name>Noxon03</name>
     327      <model>models/spaceships/noxon_spaceship_fighter.obj,1</model>
     328      <team>2</team>
     329      <swarm>3</swarm>
     330      <list>OM_GROUP_02</list>
     331      <attackDistance>60</attackDistance>
     332      <maxSpeed>500</maxSpeed>
     333      <Weapons>HeavyBlaster</Weapons>
     334      <abs-coor>7500, 0, -990</abs-coor>
     335      <abs-dir> 3.14,0,1,0 </abs-dir>
     336    </NPC>
     337    <NPC>
     338      <name>Noxon04</name>
     339      <model>models/spaceships/noxon_spaceship_bomber.obj,1</model>
     340      <team>2</team>
     341      <swarm>3</swarm>
     342      <list>OM_GROUP_02</list>
     343      <attackDistance>60</attackDistance>
     344      <maxSpeed>500</maxSpeed>
     345      <Weapons>HeavyBlaster</Weapons>
     346      <abs-coor>7550, 0, -1020</abs-coor>
     347      <abs-dir> 3.14,0,1,0 </abs-dir>
     348    </NPC>
     349    <NPC>
     350      <name>Noxon05</name>
     351      <model>models/spaceships/noxon_spaceship_bomber.obj,1</model>
     352      <team>2</team>
     353      <swarm>3</swarm>
     354      <list>OM_GROUP_02</list>
     355      <attackDistance>60</attackDistance>
     356      <maxSpeed>500</maxSpeed>
     357      <Weapons>HeavyBlaster</Weapons>
     358      <abs-coor>7550, 0, -980</abs-coor>
     359      <abs-dir> 3.14,0,1,0 </abs-dir>
    296360    </NPC>
    297361
     
    316380        <addPoint>7000,0,-200</addPoint>
    317381        <addPoint>7500,0,-700</addPoint>
     382        <addPoint>7500,0,-1000</addPoint>
     383        <addPoint>7500,0,-1500</addPoint>
     384        <addPoint>8000,0,-2000</addPoint>
    318385      </Track>
    319386    </SpaceShip>
     
    360427      <abs-coor>2800,5,50</abs-coor>
    361428     </Camera>
     429     <Camera>
     430      <name> CameraTwo </name>
     431      <abs-coor>7000,0,-50</abs-coor>
     432     </Camera>
    362433    </Cameras>
    363434   </CameraMan>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4684 r4694  
    22thisscript:addObject("SpaceShip", "Player")
    33thisscript:addObject("CameraMan", "cameraManager")
     4
     5-- The Pirates
    46thisscript:addObject("NPC", "Ragnar01")
    57thisscript:addObject("NPC", "Ragnar02")
     
    1315thisscript:addObject("NPC", "Pirate08")
    1416thisscript:addObject("NPC", "Pirate09")
     17
     18-- The Noxons
     19thisscript:addObject("NPC", "Noxon01")
     20thisscript:addObject("NPC", "Noxon02")
     21thisscript:addObject("NPC", "Noxon03")
     22thisscript:addObject("NPC", "Noxon04")
     23thisscript:addObject("NPC", "Noxon05")
     24--thisscript:addObject("NPC", "Noxon06")
     25--thisscript:addObject("NPC", "Noxon07")
     26--thisscript:addObject("NPC", "Noxon08")
     27--thisscript:addObject("NPC", "Noxon09")
     28--thisscript:addObject("NPC", "Noxon10")
     29--thisscript:addObject("NPC", "Noxon11")
     30--thisscript:addObject("NPC", "Noxon12")
     31
    1532-- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
    1633
     
    3653triggerCutscene02:setActiveOnCreation(true)
    3754
     55-- Create another cutscene trigger
     56triggerCutscene03 = ScriptTrigger()
     57triggerCutscene03:setScript("vs1.lua")
     58triggerCutscene03:setFunction("surviver")
     59triggerCutscene03:setActiveOnCreation(true)
     60
     61-- Create another cutscene trigger
     62triggerCutscene04 = ScriptTrigger()
     63triggerCutscene04:setScript("vs1.lua")
     64triggerCutscene04:setFunction("onNoxons")
     65triggerCutscene04:setActiveOnCreation(true)
     66
    3867-- Create the cool Ragnar trigger
    3968triggerRagnar = ScriptTrigger()
     
    89118counter = 0
    90119cutsceneRunning = false
     120cutscene2Running = false
    91121cutsceneEnd = false
     122cutscene2End = false
    92123bossFight = false
    93124bossFightEnd = false
     
    97128-- cameraManager:setCam("GameWorld-Camera")
    98129cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
     130cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01")
    99131cameraManager:setRelCoor("CameraOne", 10, 8 , 5)
    100 cameraManager:setRelCoorSoft("GameWorld-Camera", 0, 100, 0, 10)
     132cameraManager:setRelCoor("CameraTwo", 10, 8 , 5)
     133Player:setCameraDistance(100)
     134
    101135
    102136Ragnar01:pause(true)
     
    181215Ragnar02:setAI(true)
    182216bossFight = true
    183 cameraManager:setRelCoorSoft("GameWorld-Camera", 0, 10, 0, 6)
     217Player:setCameraDist(100)
    184218
    185219return true
     
    195229if time > 25 then
    196230Ragnar02:setAI(false)
     231bossFight = false
    197232bossFightEnd = true
    198233end
     
    200235return bossFightEnd
    201236end
     237
     238function onNoxons(timestep)
     239
     240if bossFightEnd then
     241cameraManager:setCam("CameraTwo")
     242Player:pause(true)
     243end
     244
     245
     246return cutscene2End
     247end
Note: See TracChangeset for help on using the changeset viewer.