[5561] | 1 | <?lua |
---|
[5654] | 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_H2.oxt") |
---|
[5561] | 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/skypanoramagen1" |
---|
| 16 | > |
---|
| 17 | <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" /> |
---|
| 18 | |
---|
| 19 | |
---|
[5565] | 20 | <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5561] | 21 | |
---|
[5565] | 22 | |
---|
[5561] | 23 | <?lua |
---|
| 24 | max = 20 |
---|
| 25 | for i = 1, max, 1 |
---|
[6412] | 26 | do |
---|
[5565] | 27 | x = math.sin(i/max*6)*40000 |
---|
| 28 | y = math.cos(i/max*6)*40000 |
---|
[5561] | 29 | z = i*100 |
---|
| 30 | ?> |
---|
| 31 | <?lua |
---|
[6412] | 32 | for k = 1, 25, 1 |
---|
[5561] | 33 | do |
---|
| 34 | j = math.random() |
---|
| 35 | ?> |
---|
[6412] | 36 | |
---|
| 37 | <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
[5561] | 38 | <attached> |
---|
| 39 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
| 40 | </attached> |
---|
| 41 | <?lua if i == 5 then ?><collisionShapes> |
---|
| 42 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
| 43 | </collisionShapes> <?lua end ?> |
---|
| 44 | </MovableEntity> |
---|
[6412] | 45 | <?lua |
---|
[5561] | 46 | end |
---|
| 47 | ?> |
---|
| 48 | <?lua end ?> |
---|
[5565] | 49 | <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
[6412] | 50 | |
---|
[5561] | 51 | </Scene> |
---|
| 52 | </Level> |
---|