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