Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9185 was 9185, checked in by huttemat, 12 years ago

test

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