Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4621 for data


Ignore:
Timestamp:
Jan 29, 2007, 4:39:16 PM (18 years ago)
Author:
bknecht
Message:

bit more vertical_scroller… but KI doesn't work, camera doesn't work and I don't know.. it just doesn't work :(

Location:
data/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/DefaultCampaign.oxc

    r4538 r4621  
    3030    <SinglePlayerWorld>
    3131      <identifier>3</identifier>
    32       <nextid>2</nextid>
    33       <name>In Space</name>
     32      <nextid>3</nextid>
     33      <name>Mission 1</name>
    3434      <path>levels/vertical_scroller.oxw</path>
    3535      <menu-entry>1</menu-entry>
     
    3838    <SinglePlayerWorld>
    3939      <identifier>4</identifier>
     40      <nextid>2</nextid>
     41      <name>Noxon Encounter</name>
     42      <path>levels/vertical_scroller2.oxw</path>
     43      <menu-entry>1</menu-entry>
     44    </SinglePlayerWorld>
     45
     46    <SinglePlayerWorld>
     47      <identifier>5</identifier>
    4048      <nextid>1</nextid>
    4149      <name>Cut Scene</name>
  • data/trunk/levels/vertical_scroller.oxw

    r4608 r4621  
    11<WorldDataFile>
    2   <name>In Space</name>
     2  <name>Mission 1</name>
    33  <description>This is the vertical scroller level.</description>
    44  <menu-item-image>textures/menu/Scienceproject_512x512.jpg</menu-item-image>
     
    9090    <NPC>
    9191      <name>Pirate01</name>
    92       <model>models/spaceships/noxon_spaceship_fighter.obj,0.2</model>
     92      <model>models/spaceships/pirates_spaceship_fighter.obj,0.2</model>
     93      <enableAI></enableAI>
     94      <team>1</team>
     95      <swarm>1</swarm>
     96      <attackDistance>100</attackDistance>
     97      <maxSpeed>50</maxSpeed>
     98      <Weapons>LaserCannon</Weapons>
    9399      <abs-coor>3500, 0, 20</abs-coor>
    94       <abs-dir> 3.14,0,1,0 </abs-dir>
     100      <rotation>0,1,0</rotation>
    95101    </NPC>
    96102
    97103    <NPC>
    98104      <name>Pirate02</name>
    99       <model>models/spaceships/noxon_spaceship_fighter.obj,0.2</model>
     105      <model>models/spaceships/pirates_spaceship_fighter.obj,0.2</model>
     106      <enableAI></enableAI>
     107      <team>1</team>
     108      <swarm>1</swarm>
     109      <attackDistance>100</attackDistance>
     110      <maxSpeed>50</maxSpeed>
     111      <Weapons>HeavyBlaster</Weapons>
    100112      <abs-coor>3500, 0, 0</abs-coor>
    101113      <abs-dir> 3.14,0,1,0 </abs-dir>
     
    104116    <NPC>
    105117      <name>Pirate03</name>
    106       <model>models/spaceships/noxon_spaceship_fighter.obj,0.2</model>
     118      <model>models/spaceships/pirates_spaceship_fighter.obj,0.2</model>
     119      <enableAI></enableAI>
     120      <team>1</team>
     121      <swarm>1</swarm>
     122      <attackDistance>100</attackDistance>
     123      <maxSpeed>50</maxSpeed>
     124      <Weapons>HeavyBlaster</Weapons>
    107125      <abs-coor>3450, 0, 10</abs-coor>
    108126      <abs-dir> 3.14,0,1,0 </abs-dir>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4608 r4621  
    22thisscript:addObject("SpaceShip", "Player")
    33thisscript:addObject("CameraMan", "cameraManager")
    4 -- thisscript:addObjectAsName("GameWorld", "In Space", "gameWorld")
     4-- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
    55
    66triggerInit = ScriptTrigger()
     
    1313triggerCutscene:setScript("vs1.lua")
    1414triggerCutscene:setFunction("startSequence")
    15 triggerCutscene:setRadius(30)
     15triggerCutscene:setRadius(50)
    1616triggerCutscene:setTarget("Player")
    17 triggerCutscene:setAbsCoor(0 , 0 , 0)
     17triggerCutscene:setAbsCoor(100 , 0 , 0)
    1818triggerCutscene:setDebugDraw(true)
    1919triggerCutscene:setActiveOnCreation(false)
     
    2323
    2424function init(timestep)
     25-- cameraManager:setCam("GameWorld-Camera")
     26cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
    2527
    26 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
    2728cameraManager:changeTarget("CameraOne", "NPC", "Pirate01")
     29cameraManager:jumpCam("CameraOne", 3400, 0, 50)
     30
    2831
    2932
     
    3437
    3538cameraManager:setCam("CameraOne")
    36 cameraManager:changeCurrTarget("NPC", "Pirate01")
    37 cameraManager:atachCurrCameraToWorldEntity("NPC", "Pirate01")
     39-- gameWorld:showText("Kill those traitorous bastards")
     40-- cameraManager:changeCurrTarget("NPC", "Pirate01")
     41-- cameraManager:atachCurrCameraToWorldEntity("NPC", "Pirate01")
    3842
    3943return true
Note: See TracChangeset for help on using the changeset viewer.