Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/shipSelection/data/levels/tutorial.oxw @ 9079

Last change on this file since 9079 was 9057, checked in by huttemat, 13 years ago

test2

  • Property svn:eol-style set to native
File size: 5.4 KB
RevLine 
[7648]1<LevelInfo
2 name = "Coding Tutorial"
3 description = "Level for the coding tutorial."
[9039]4 tags = "tutorial, shipselection"
[9016]5 screenshot = "codingtutorial.png"
[9057]6 startingships = "spaceshipGhost, spaceshipPirate, spaceshipSpacecruiser"
[7648]7/>
8
[5378]9<?lua
[7679]10  include("HUDTemplates3.oxo")
[5654]11  include("stats.oxo")
[7679]12  include("templates/spaceshipAssff.oxt")
13  include("templates/lodInformation.oxt")
[5378]14?>
15
[9016]16<Level>
[7163]17  <templates>
18    <Template link=lodtemplate_default />
19  </templates>
[8706]20  <?lua include("includes/notifications.oxi") ?>
[7163]21
[5378]22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
24   skybox       = "Orxonox/skypanoramagen1"
25  >
[5452]26
[7210]27
[5452]28
29
[7404]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
[5378]48    <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
[7404]50    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
51    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
[5403]52
[7163]53    <?lua
54      for i = 1, 10, 1 do
55    ?>
[9046]56      <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]57    <?lua end ?>
[5383]58
[7404]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>
[7163]72
[7404]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-->
111
[5378]112  </Scene>
113</Level>
Note: See TracBrowser for help on using the repository browser.