Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/data/levels/tutorial.oxw @ 8012

Last change on this file since 8012 was 8012, checked in by dafrick, 13 years ago

Committing muster-lösung.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1<LevelInfo
2 name = "Coding Tutorial"
3 description = "Level for the coding tutorial."
4 tags = "tutorial"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/lodInformation.oxt")
12?>
13
14<Level
15 name         = "Coding Tutorial"
16 description  = "Level for the coding tutorial."
17>
18  <templates>
19    <Template link=lodtemplate_default />
20  </templates>
21
22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
24   skybox       = "Orxonox/skypanoramagen1"
25  >
26
27    <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" />
28
29    <?lua
30      for i = 1, 10, 1 do
31    ?>
32      <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 />
33    <?lua end ?>
34   
35    <!-- TODO: Insert drone here. -->
36    <AutonomousDrone primaryThrust=100 auxilaryThrust=30 rotationThrust=25 collisionType="dynamic" mass = 50 linearDamping = 0.9 angularDamping = 0.7>
37        <attached>
38            <Model scale="10" mesh="drone.mesh"/>
39        </attached>
40        <collisionShapes>
41            <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
42        </collisionShapes>
43    </AutonomousDrone>
44
45  </Scene>
46</Level>
Note: See TracBrowser for help on using the repository browser.