Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

more adjustments

  • Property svn:eol-style set to native
File size: 4.5 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<Drone position="0,100,100" mass="50"
18   primaryThrust     = 100;
19   auxilaryThrust    = 100;
20   rotationThrust    = 10;
21   collisionType     = "dynamic">
22  <attached>
23    <Model scale="10" mesh="drone.mesh"/>
24  </attached>
25  <collisionShapes>
26    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
27  </collisionShapes>
28</Drone>
29
30
31<?lua
32for i = 1, 10, 1
33do ?>
34    <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 />
35<?lua
36end
37?>
38
39    <GlobalShader compositor="Bloom" visible=false>
40      <events>
41        <visibility>
42          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
43        </visibility>
44      </events>
45    </GlobalShader>
46    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
47    <StaticEntity position="0,0,0" collisionType=static>
48      <collisionShapes>
49        <SphereCollisionShape radius="20" />
50      </collisionShapes>
51    </StaticEntity>
52<!--
53<?lua
54for i = 1, 70, 1
55do ?>
56  <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) ?>">
57    <attached>
58      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
59    </attached>
60  </MovableEntity>
61  <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) ?>">
62    <attached>
63      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
64    </attached>
65  </MovableEntity>
66
67  <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) ?>">
68    <attached>
69      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
70    </attached>
71  </MovableEntity>
72  <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) ?>">
73    <attached>
74      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
75    </attached>
76  </MovableEntity>
77
78  <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) ?>">
79    <attached>
80      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
81    </attached>
82  </MovableEntity>
83  <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) ?>">
84    <attached>
85      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
86    </attached>
87  </MovableEntity>
88<?lua
89end
90?>
91-->
92  </Scene>
93</Level>
Note: See TracBrowser for help on using the repository browser.