Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 6913 was 6487, checked in by rgrieder, 15 years ago

Merged r5841 that removes the student's code from the tutorial.

  • Property svn:eol-style set to native
File size: 4.2 KB
RevLine 
[5378]1<?lua
[5654]2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
[5378]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  >
[5452]15
[5378]16    <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" />
17
[5519]18<Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
19<Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
[5403]20
[5378]21<?lua
[5528]22for i = 1, 10, 1
[5378]23do ?>
24    <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 />
[5528]25<?lua
[5378]26end
27?>
[5383]28
29    <GlobalShader compositor="Bloom" visible=false>
30      <events>
31        <visibility>
32          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
33        </visibility>
34      </events>
35    </GlobalShader>
36    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
37    <StaticEntity position="0,0,0" collisionType=static>
38      <collisionShapes>
39        <SphereCollisionShape radius="20" />
40      </collisionShapes>
41    </StaticEntity>
42<!--
43<?lua
[5528]44for i = 1, 70, 1
[5383]45do ?>
46  <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) ?>">
47    <attached>
48      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
49    </attached>
50  </MovableEntity>
51  <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) ?>">
52    <attached>
53      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
54    </attached>
55  </MovableEntity>
56
57  <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) ?>">
58    <attached>
59      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
60    </attached>
61  </MovableEntity>
62  <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) ?>">
63    <attached>
64      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
65    </attached>
66  </MovableEntity>
67
68  <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) ?>">
69    <attached>
70      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
71    </attached>
72  </MovableEntity>
73  <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) ?>">
74    <attached>
75      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
76    </attached>
77  </MovableEntity>
[5528]78<?lua
[5383]79end
80?>
81-->
[5378]82  </Scene>
83</Level>
Note: See TracBrowser for help on using the repository browser.