Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/presentation09b.oxw @ 5564

Last change on this file since 5564 was 5564, checked in by landauf, 15 years ago

added a second skybox, tested it in a level with an alternative asteroid placement

File size: 1.3 KB
Line 
1<?lua
2  include("overlay/hudtemplates3.oxo")
3  include("overlay/stats.oxo")
4  include("levels/templates/spaceship_assff.oxt")
5  include("levels/templates/spaceship_H2.oxt")
6?>
7
8<Level
9 name         = "Presentation09"
10 description  = "presentation level for Orxonox Convention X"
11
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/skypanoramagen2"
16  >
17    <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" />
18
19    <SpawnPoint position="10000, 2000, 3000" direction="-0.6, -0.5, -0.7" spawnclass=SpaceShip pawndesign=spaceshipassff />
20
21<?lua
22for i = 1, 200, 1
23do
24x = math.random() * 100  + (i-50) * 100
25y = math.random() * 3000 - 1500
26z = math.random() * 3000 - 1500 + (i-100) * 10
27s = math.random() * 100 + 50
28?>
29   
30    <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
31      <attached>
32        <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
33      </attached>
34    </MovableEntity>
35<?lua
36end
37?>
38   
39  </Scene>
40</Level>
Note: See TracBrowser for help on using the repository browser.