Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4090


Ignore:
Timestamp:
Jul 4, 2006, 1:39:11 PM (18 years ago)
Author:
bensch
Message:

orxonox/presentation better player

Location:
data/branches/presentation
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • data/branches/presentation/scripts/spaceship_flight.lua

    r4088 r4090  
    11-- Global Variables
    2 panic = false             -- True if thestranger panics.
    3 walkingRouteOne = false   -- True if thestranger is walking route one
     2thisscript:addObject("GameWorld", "Ambush_at_Jupiter")
    43
    54
    6 function togglePanic(timestep)
    7 panic = not panic
    8 return false
    9 end
    10 
    11 
    12 function walkRouteOne()
    13 
    14 
    15 end
    16 
    17 function flee()
    18 
    19 
    20 end
    215
    226
    237function tick(timestep)
    248
    25 if not walkingRouteOne then
    26 walkRouteOne()
    27 routeOneTriggered = true
     9 Ambush_at_Jupiter:setPlaymode("Horizontal")
     10
     11 return true
    2812end
    29 
    30 if panic then
    31 flee(timestep)
    32 end
    33 
    34 
    35 return false
    36 end
  • data/branches/presentation/worlds/DefaultCampaign.oxc

    r4089 r4090  
    2424      <identifier>2</identifier>
    2525      <nextid>3</nextid>
    26       <name>Ambush at Jupiter</name>
     26      <name>Ambush_at_Jupiter</name>
    2727      <path>worlds/sp_level_ambush_at_jupiter.oxw</path>
    2828      <menu-entry>1</menu-entry>
  • data/branches/presentation/worlds/sp_level_ambush_at_jupiter.oxw

    r4088 r4090  
    11<WorldDataFile>
    2   <name>Ambush at Jupiter</name>
     2  <name>Ambush_at_Jupiter</name>
    33  <menu-item-image>pictures/menu/Scienceproject_512x512.jpg</menu-item-image>
    44  <screenshoot>pictures/menu/Scienceproject_512x512.jpg</screenshoot>
     
    4545    </Script>
    4646
     47    <Script>
     48     <file>spaceship_flight.lua</file>
     49    </Script>
     50
    4751   </Scripts>
    4852
     
    115119    </ScriptTrigger>
    116120
     121    <ScriptTrigger>
     122     <name>spaceship_flight_trigger</name>
     123     <file>spaceship_flight.lua</file>
     124     <function>tick</function>
     125     <abs-coor>1300, -21.959781, -1695</abs-coor>
     126     <radius>100</radius>
     127     <worldentity>SPACE_CRAFT</worldentity>
     128     <debugdraw>true</debugdraw>
     129    </ScriptTrigger>
     130
    117131   </ScriptTriggers>
    118132
     
    125139     <name>Sky</name>
    126140     <Materialset>pictures/sky/simple_space</Materialset>
    127      <Size>10000</Size>
     141     <Size>100000</Size>
    128142    </SkyBox>
    129143
     
    229243
    230244    <Spacecraft2D>
    231       <name>spaceship</name>
    232       <model>models/ships/mantawing.obj, 10</model>
     245      <name>SPACE_CRAFT</name>
     246      <model>models/ships/mantawing.obj, 5</model>
    233247      <abs-coor>1600, 0.004610, -1700.0</abs-coor>
    234248      <enter-radius>100000</enter-radius>
    235       <travel-speed>10</travel-speed>
    236       <travel-height>-30</travel-height>
     249      <travel-speed>20</travel-speed>
     250      <travel-height>5</travel-height>
    237251    </Spacecraft2D>
    238252
     
    258272
    259273
    260    <SpaceShip>
     274    <SpaceShip>
    261275      <name>spaceship3</name>
    262276      <model>models/ships/powerdrifter.obj,15</model>
Note: See TracChangeset for help on using the changeset viewer.