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 |
---|
22 | for i = 1, 200, 1 |
---|
23 | do |
---|
24 | x = math.random() * 100 + (i-50) * 100 |
---|
25 | y = math.random() * 3000 - 1500 |
---|
26 | z = math.random() * 3000 - 1500 + (i-100) * 10 |
---|
27 | s = 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 |
---|
36 | end |
---|
37 | ?> |
---|
38 | |
---|
39 | </Scene> |
---|
40 | </Level> |
---|