Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/tutorial.oxw @ 11293

Last change on this file since 11293 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 5.5 KB
RevLine 
[7648]1<LevelInfo
2 name = "Coding Tutorial"
3 description = "Level for the coding tutorial."
[9348]4 tags = "tutorial, shipselection"
[9016]5 screenshot = "codingtutorial.png"
[9348]6 startingships = "spaceshipassff, spaceshipghost, spaceshipspacecruiser"
[7648]7/>
8
[5378]9<?lua
[7679]10  include("HUDTemplates3.oxo")
[5654]11  include("stats.oxo")
[7679]12  include("templates/spaceshipAssff.oxt")
[9348]13  include("templates/spaceshipGhost.oxt")
14  include("templates/spaceshipSpacecruiser.oxt")
[7679]15  include("templates/lodInformation.oxt")
[5378]16?>
17
[9016]18<Level>
[7163]19  <templates>
20    <Template link=lodtemplate_default />
21  </templates>
[8706]22  <?lua include("includes/notifications.oxi") ?>
[7163]23
[5378]24  <Scene
25   ambientlight = "0.5, 0.5, 0.5"
[9348]26   skybox       = "Orxonox/skyBoxBasic"
[5378]27  >
[7404]28<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
29  <attached>
30    <Model scale="1" mesh="drone.mesh"/>
31  </attached>
32  <collisionShapes>
33    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
34  </collisionShapes>
35</Drone>
36
37    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
38      <attached>
39        <Model scale="1" mesh="rocket.mesh"/>
40      </attached>
41      <collisionShapes>
42        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
43      </collisionShapes>
44    </Drone>
45
[5378]46    <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" />
47
[7404]48    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
49    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
[5403]50
[7163]51    <?lua
52      for i = 1, 10, 1 do
53    ?>
[9348]54      <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=shipselection />
[7163]55    <?lua end ?>
[5383]56
[7404]57    <GlobalShader compositor="Bloom" visible=false>
58      <events>
59        <visibility>
60          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
61        </visibility>
62      </events>
63    </GlobalShader>
64    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
65    <StaticEntity position="0,0,0" collisionType=static>
66      <collisionShapes>
67        <SphereCollisionShape radius="20" />
68      </collisionShapes>
69    </StaticEntity>
[7163]70
[7404]71<!--
72    <?lua
73      for i = 1, 70, 1 do
74    ?>
75      <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) ?>">
76        <attached>
77          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
78        </attached>
79      </MovableEntity>
80      <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) ?>">
81        <attached>
82          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
83        </attached>
84      </MovableEntity>
85
86      <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) ?>">
87        <attached>
88          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
89        </attached>
90      </MovableEntity>
91      <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) ?>">
92        <attached>
93          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
94        </attached>
95      </MovableEntity>
96
97      <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) ?>">
98        <attached>
99          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
100        </attached>
101      </MovableEntity>
102      <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) ?>">
103        <attached>
104          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
105        </attached>
106      </MovableEntity>
107    <?lua end ?>
108-->
109
[5378]110  </Scene>
111</Level>
Note: See TracBrowser for help on using the repository browser.