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