Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6305 for code/branches


Ignore:
Timestamp:
Dec 9, 2009, 9:34:27 PM (15 years ago)
Author:
decapitb
Message:

added some enemies and stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/levels/presentationHS09b.oxw

    r6257 r6305  
    77  include("templates/spaceship_assff.oxt")
    88  include("templates/spaceship_pirate.oxt")
     9  include("templates/spaceship_ghost.oxt")
     10  include("templates/spaceship_HXY.oxt")
    911?>
    1012
     
    1921
    2022   
    21         <AmbientSound ambientSource="Earth.ogg" loop="true" play="true" />
     23        <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
    2224
    2325   <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
    2426   <?lua
    25    elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
     27   elements = {"asteroid_UV.mesh"
     28--, "asteroid_ice.mesh"
     29--, "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"
     30}
    2631   elements.length = function()
    2732        return table.getn(elements)
     
    3237   y = math.random() * 3000 - 1500
    3338   z = math.random() * 3000 - 1500 + (i-100) * 10
    34    s = math.random() * 60 + 30
     39   s = math.random() * 100 + 50
    3540   e = math.floor(math.random()*elements.length()+1)
    3641   ?>
    3742   
    38     <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
     43    <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
    3944      <attached>
    4045        <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
    4146      </attached>
     47        <collisionShapes>
     48                <SphereCollisionShape radius="<?lua if e==0 then print(s*0.9) end if e==1 then print(s*0.3) end if e==2 or e==3 or e==4 or e==5 or e==6 or e==7 then print(s*2) end ?>" />
     49        </collisionShapes>
    4250    </MovableEntity>
    4351<?lua
     
    5159y = math.random() * 3000 - 1500
    5260z = math.random() * 3000 - 1500 + (i-100) * 10
    53 s = math.random() * 60 + 30
     61s = math.rando 
    5462?>
     63
    5564 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    56 
    57 <!--<Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" />
     65<!--
     66<Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" />
    5867-->
    5968<?lua
     
    8392        end
    8493        ?>
     94<?lua
     95for i = 1,5, 1
     96do
     97?>
     98    <SpaceShip position="2000,0,0" >
     99      <templates>
     100        <Template link=spaceshipHXY />
     101      </templates>
     102      <controller>
     103        <WaypointPatrolController name=ghost target=pirate alertnessradius=1000 team=0 active=false>
     104          <waypoints>
     105            <StaticEntity position="0,0,0" />
     106          </waypoints>
     107        </WaypointPatrolController>
     108      </controller>
     109    </SpaceShip>
     110<?lua
     111end
     112?>
    85113
    86 
    87     <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     114    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipHXY  />
    88115  </Scene>
    89116</Level>
Note: See TracChangeset for help on using the changeset viewer.