Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/tutorial.oxw @ 5405

Last change on this file since 5405 was 5405, checked in by scheusso, 15 years ago

removed some lines in the tutorial levelfile (the students have to put
them in again)

  • Property svn:eol-style set to native
File size: 4.2 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3  include("overlay/stats.oxo")
4  include("levels/spaceshiptemplates_presentation.oxw")
5?>
6
7<Level
8 name         = "Presentation"
9 description  = "A simple testlevel"
10>
11  <Scene
12   ambientlight = "0.5, 0.5, 0.5"
13   skybox       = "Orxonox/skypanoramagen1"
14  >
15    <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" />
16
17
18<?lua
19for i = 1, 10, 1
20do ?>
21    <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 />
22<?lua
23end
24?>
25
26    <GlobalShader compositor="Bloom" visible=false>
27      <events>
28        <visibility>
29          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
30        </visibility>
31      </events>
32    </GlobalShader>
33    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
34    <StaticEntity position="0,0,0" collisionType=static>
35      <collisionShapes>
36        <SphereCollisionShape radius="20" />
37      </collisionShapes>
38    </StaticEntity>
39<!--
40<?lua
41for i = 1, 70, 1
42do ?>
43  <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) ?>">
44    <attached>
45      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
46    </attached>
47  </MovableEntity>
48  <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) ?>">
49    <attached>
50      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
51    </attached>
52  </MovableEntity>
53
54  <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) ?>">
55    <attached>
56      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
57    </attached>
58  </MovableEntity>
59  <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) ?>">
60    <attached>
61      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
62    </attached>
63  </MovableEntity>
64
65  <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) ?>">
66    <attached>
67      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
68    </attached>
69  </MovableEntity>
70  <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) ?>">
71    <attached>
72      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
73    </attached>
74  </MovableEntity>
75<?lua
76end
77?>
78-->
79  </Scene>
80</Level>
Note: See TracBrowser for help on using the repository browser.