[5561] | 1 | <?lua |
---|
[5654] | 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_H2.oxt") |
---|
[7036] | 6 | include("templates/lodinformation.oxt") |
---|
[5561] | 7 | ?> |
---|
| 8 | |
---|
| 9 | <Level |
---|
| 10 | name = "Presentation09" |
---|
| 11 | description = "presentation level for Orxonox Convention X" |
---|
| 12 | |
---|
| 13 | > |
---|
[7036] | 14 | <templates> |
---|
| 15 | <Template link=lodtemplate_default /> |
---|
| 16 | </templates> |
---|
[5561] | 17 | <Scene |
---|
| 18 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 19 | skybox = "Orxonox/skypanoramagen1" |
---|
| 20 | > |
---|
[7007] | 21 | |
---|
[5561] | 22 | <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" /> |
---|
| 23 | |
---|
| 24 | |
---|
[7007] | 25 | <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] | 26 | |
---|
[5565] | 27 | |
---|
[7007] | 28 | <?lua |
---|
| 29 | max = 20 |
---|
| 30 | for i = 1, max, 1 |
---|
| 31 | do |
---|
| 32 | x = math.sin(i/max*6)*40000 |
---|
| 33 | y = math.cos(i/max*6)*40000 |
---|
| 34 | z = i*100 |
---|
[5561] | 35 | ?> |
---|
[7007] | 36 | <?lua |
---|
| 37 | for k = 1, 25, 1 |
---|
| 38 | do |
---|
| 39 | j = math.random() |
---|
| 40 | ?> |
---|
[6417] | 41 | |
---|
[7007] | 42 | <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) ?>"> |
---|
| 43 | <attached> |
---|
| 44 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
| 45 | </attached> |
---|
| 46 | <?lua if i == 5 then ?><collisionShapes> |
---|
| 47 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
| 48 | </collisionShapes> <?lua end ?> |
---|
| 49 | </MovableEntity> |
---|
| 50 | |
---|
| 51 | <?lua end ?> |
---|
| 52 | <?lua end ?> |
---|
| 53 | |
---|
[5565] | 54 | <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 /> |
---|
[6417] | 55 | |
---|
[5561] | 56 | </Scene> |
---|
| 57 | </Level> |
---|