[7648] | 1 | <LevelInfo |
---|
| 2 | name = "Swallow Testlevel" |
---|
| 3 | description = "Level to test the swallow spaceship." |
---|
| 4 | tags = "test" |
---|
[9016] | 5 | screenshot = "swallowtestlevel.png" |
---|
[7648] | 6 | /> |
---|
| 7 | |
---|
[6929] | 8 | <?lua |
---|
[7679] | 9 | include("HUDTemplates3.oxo") |
---|
[6929] | 10 | include("stats.oxo") |
---|
[7679] | 11 | include("templates/spaceshipSwallow.oxt") |
---|
| 12 | include("templates/spaceshipPirate.oxt") |
---|
| 13 | include("templates/lodInformation.oxt") |
---|
[6929] | 14 | ?> |
---|
| 15 | |
---|
[9016] | 16 | <Level> |
---|
[6929] | 17 | |
---|
[7655] | 18 | <templates> |
---|
| 19 | <Template link=lodtemplate_default /> |
---|
| 20 | </templates> |
---|
[8706] | 21 | <?lua include("includes/notifications.oxi") ?> |
---|
[7655] | 22 | |
---|
[6929] | 23 | <Scene |
---|
| 24 | ambientlight = "0.5, 0.5, 0.5" |
---|
[9348] | 25 | skybox = "Orxonox/skyBoxBasic" |
---|
[6929] | 26 | > |
---|
| 27 | <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" /> |
---|
| 28 | |
---|
| 29 | <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=spaceshipswallow /> |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | <?lua |
---|
| 33 | max = 20 |
---|
| 34 | for i = 1, max, 1 |
---|
| 35 | do |
---|
| 36 | x = math.sin(i/max*6)*40000 |
---|
| 37 | y = math.cos(i/max*6)*40000 |
---|
| 38 | z = i*100 |
---|
| 39 | ?> |
---|
| 40 | <?lua |
---|
| 41 | for k = 1, 25, 1 |
---|
| 42 | do |
---|
| 43 | j = math.random() |
---|
| 44 | ?> |
---|
| 45 | |
---|
[8079] | 46 | <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) ?>"> |
---|
[6929] | 47 | <attached> |
---|
[8079] | 48 | <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
[6929] | 49 | </attached> |
---|
| 50 | <?lua if i == 5 then ?><collisionShapes> |
---|
| 51 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
| 52 | </collisionShapes> <?lua end ?> |
---|
| 53 | </MovableEntity> |
---|
| 54 | <?lua |
---|
| 55 | end |
---|
| 56 | ?> |
---|
| 57 | <?lua end ?> |
---|
[11128] | 58 | <MovableEntity position="0,0,0" scale=10000 pitch=-90 rotationaxis="1,1,0" rotationrate="1" > |
---|
| 59 | <attached> |
---|
| 60 | <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
| 61 | </attached> |
---|
| 62 | </MovableEntity> |
---|
[6929] | 63 | |
---|
| 64 | </Scene> |
---|
| 65 | </Level> |
---|