[7648] | 1 | <LevelInfo |
---|
| 2 | name = "Coding Tutorial" |
---|
| 3 | description = "Level for the coding tutorial." |
---|
| 4 | tags = "tutorial" |
---|
| 5 | /> |
---|
| 6 | |
---|
[5378] | 7 | <?lua |
---|
[7679] | 8 | include("HUDTemplates3.oxo") |
---|
[5654] | 9 | include("stats.oxo") |
---|
[7679] | 10 | include("templates/spaceshipAssff.oxt") |
---|
| 11 | include("templates/lodInformation.oxt") |
---|
[5378] | 12 | ?> |
---|
| 13 | |
---|
| 14 | <Level |
---|
| 15 | name = "Presentation" |
---|
| 16 | description = "A simple testlevel" |
---|
| 17 | > |
---|
[7163] | 18 | <templates> |
---|
| 19 | <Template link=lodtemplate_default /> |
---|
| 20 | </templates> |
---|
| 21 | |
---|
[5378] | 22 | <Scene |
---|
| 23 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 24 | skybox = "Orxonox/skypanoramagen1" |
---|
| 25 | > |
---|
[5452] | 26 | |
---|
[7210] | 27 | |
---|
[5452] | 28 | |
---|
| 29 | |
---|
[7404] | 30 | <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> |
---|
| 31 | <attached> |
---|
[8163] | 32 | <Model scale="10" mesh="drone.mesh"/> |
---|
[7404] | 33 | </attached> |
---|
| 34 | <collisionShapes> |
---|
[8163] | 35 | <BoxCollisionShape position="10,10,0" halfExtents="10, 10, 10" /> |
---|
[7404] | 36 | </collisionShapes> |
---|
| 37 | </Drone> |
---|
| 38 | |
---|
| 39 | <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> |
---|
| 40 | <attached> |
---|
[8163] | 41 | <Model scale="1" mesh="drone.mesh"/> |
---|
[7404] | 42 | </attached> |
---|
| 43 | <collisionShapes> |
---|
[8163] | 44 | <BoxCollisionShape position="0,10,0" halfExtents="10, 10, 10" /> |
---|
[7404] | 45 | </collisionShapes> |
---|
| 46 | </Drone> |
---|
| 47 | |
---|
[5378] | 48 | <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" /> |
---|
| 49 | |
---|
[7404] | 50 | <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" /> |
---|
| 51 | <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" /> |
---|
[5403] | 52 | |
---|
[7163] | 53 | <?lua |
---|
| 54 | for i = 1, 10, 1 do |
---|
| 55 | ?> |
---|
| 56 | <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 57 | <?lua end ?> |
---|
[5383] | 58 | |
---|
[7404] | 59 | <GlobalShader compositor="Bloom" visible=false> |
---|
| 60 | <events> |
---|
| 61 | <visibility> |
---|
| 62 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
| 63 | </visibility> |
---|
| 64 | </events> |
---|
| 65 | </GlobalShader> |
---|
| 66 | <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> |
---|
| 67 | <StaticEntity position="0,0,0" collisionType=static> |
---|
| 68 | <collisionShapes> |
---|
| 69 | <SphereCollisionShape radius="20" /> |
---|
| 70 | </collisionShapes> |
---|
| 71 | </StaticEntity> |
---|
[7163] | 72 | |
---|
[7404] | 73 | <!-- |
---|
| 74 | <?lua |
---|
| 75 | for i = 1, 70, 1 do |
---|
| 76 | ?> |
---|
| 77 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
| 78 | <attached> |
---|
| 79 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 80 | </attached> |
---|
| 81 | </MovableEntity> |
---|
| 82 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
| 83 | <attached> |
---|
| 84 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 85 | </attached> |
---|
| 86 | </MovableEntity> |
---|
| 87 | |
---|
| 88 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
| 89 | <attached> |
---|
| 90 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 91 | </attached> |
---|
| 92 | </MovableEntity> |
---|
| 93 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
| 94 | <attached> |
---|
| 95 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 96 | </attached> |
---|
| 97 | </MovableEntity> |
---|
| 98 | |
---|
| 99 | <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
| 100 | <attached> |
---|
| 101 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 102 | </attached> |
---|
| 103 | </MovableEntity> |
---|
| 104 | <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
| 105 | <attached> |
---|
| 106 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 107 | </attached> |
---|
| 108 | </MovableEntity> |
---|
| 109 | <?lua end ?> |
---|
| 110 | --> |
---|
| 111 | |
---|
[5378] | 112 | </Scene> |
---|
| 113 | </Level> |
---|