Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8011


Ignore:
Timestamp:
Mar 3, 2011, 3:16:55 PM (13 years ago)
Author:
dafrick
Message:

Adding tutorial stuff to (coding-)tutorial level.

Location:
code/branches/tutorial
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/data/levels/tutorial.oxw

    r7679 r8011  
    1313
    1414<Level
    15  name         = "Presentation"
    16  description  = "A simple testlevel"
     15 name         = "Coding Tutorial"
     16 description  = "Level for the coding tutorial."
    1717>
    1818  <templates>
     
    2525  >
    2626
    27 
    28 
    29 
    30 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
    31   <attached>
    32     <Model scale="1" mesh="drone.mesh"/>
    33   </attached>
    34   <collisionShapes>
    35     <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
    36   </collisionShapes>
    37 </Drone>
    38 
    39     <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
    40       <attached>
    41         <Model scale="1" mesh="rocket.mesh"/>
    42       </attached>
    43       <collisionShapes>
    44         <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
    45       </collisionShapes>
    46     </Drone>
    47 
    4827    <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" />
    49 
    50     <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
    51     <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
    5228
    5329    <?lua
     
    5632      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    5733    <?lua end ?>
    58 
    59     <GlobalShader compositor="Bloom" visible=false>
    60       <events>
    61         <visibility>
    62           <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
    63         </visibility>
    64       </events>
    65     </GlobalShader>
    66     <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
    67     <StaticEntity position="0,0,0" collisionType=static>
    68       <collisionShapes>
    69         <SphereCollisionShape radius="20" />
    70       </collisionShapes>
    71     </StaticEntity>
    72 
    73 <!--
    74     <?lua
    75       for i = 1, 70, 1 do
    76     ?>
    77       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    78         <attached>
    79           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    80         </attached>
    81       </MovableEntity>
    82       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    83         <attached>
    84           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    85         </attached>
    86       </MovableEntity>
    87 
    88       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    89         <attached>
    90           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    91         </attached>
    92       </MovableEntity>
    93       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    94         <attached>
    95           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    96         </attached>
    97       </MovableEntity>
    98 
    99       <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    100         <attached>
    101           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    102         </attached>
    103       </MovableEntity>
    104       <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
    105         <attached>
    106           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    107         </attached>
    108       </MovableEntity>
    109     <?lua end ?>
    110 -->
     34   
     35    <!-- TODO: Insert drone here. -->
    11136
    11237  </Scene>
Note: See TracChangeset for help on using the changeset viewer.