1 | <?lua |
---|
2 | include("levels/hudtemplates3.oxw") |
---|
3 | ?> |
---|
4 | |
---|
5 | <?lua |
---|
6 | include("levels/spaceshiptemplates3.oxw") |
---|
7 | ?> |
---|
8 | |
---|
9 | <Level |
---|
10 | name = "Sample" |
---|
11 | description = "Just a few tests" |
---|
12 | > |
---|
13 | <Scene |
---|
14 | ambientlight = "0.5, 0.5, 0.5" |
---|
15 | skybox = "Orxonox/skypanoramagen1" |
---|
16 | > |
---|
17 | <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" /> |
---|
18 | <!-- This is for Orxonox/Starbox -- Light type=directional position="0,0,0" direction="0.817, -0.400, 0.415" diffuse="1.0, 0.9, 0.6, 1.0" specular="1.0, 0.9, 0.6, 1.0" /--> |
---|
19 | |
---|
20 | <SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
21 | <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
22 | <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
23 | |
---|
24 | <GlobalShader compositor="Bloom" visible=false> |
---|
25 | <events> |
---|
26 | <visibility> |
---|
27 | <DistanceTrigger position="0,-200,0" distance=50 target="ControllableEntity" switch=true /> |
---|
28 | </visibility> |
---|
29 | </events> |
---|
30 | </GlobalShader> |
---|
31 | |
---|
32 | <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90> |
---|
33 | <events> |
---|
34 | <activity> |
---|
35 | <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 /> |
---|
36 | </activity> |
---|
37 | </events> |
---|
38 | <attached> |
---|
39 | <Billboard material="Examples/Flare" colour="0.5, 0.5, 1.0, 1.0" scale=4 /> |
---|
40 | <Model position="0,0,0" scale=10 mesh="ast1.mesh" /> |
---|
41 | <PositionableEntity position="0,0,100"> |
---|
42 | <attached> |
---|
43 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
44 | <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500> |
---|
45 | <attached> |
---|
46 | <Model position="0,35,0" scale=2 mesh="ast1.mesh"> |
---|
47 | <attached> |
---|
48 | <Backlight position="0, 0, 0" colour="0.0, 1.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" /> |
---|
49 | </attached> |
---|
50 | </Model> |
---|
51 | <Model position="0,-35,0" scale=2 mesh="ast1.mesh"> |
---|
52 | <attached> |
---|
53 | <Backlight position="0, 0, 0" colour="1.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" /> |
---|
54 | </attached> |
---|
55 | </Model> |
---|
56 | <Model position="35,0,0" scale=2 mesh="ast1.mesh"> |
---|
57 | <attached> |
---|
58 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
59 | <Backlight position="0, 0, 0" colour="0.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" /> |
---|
60 | </attached> |
---|
61 | </Model> |
---|
62 | <Model position="-35,0,0" scale=2 mesh="ast1.mesh"> |
---|
63 | <attached> |
---|
64 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
65 | <Backlight position="0, 0, 0" colour="1.0, 0.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" /> |
---|
66 | </attached> |
---|
67 | </Model> |
---|
68 | </attached> |
---|
69 | </MovableEntity> |
---|
70 | </attached> |
---|
71 | </PositionableEntity> |
---|
72 | <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200> |
---|
73 | <attached> |
---|
74 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
75 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
76 | <Model position="0,0,-50" scale=3 mesh="ast1.mesh" /> |
---|
77 | <Model position="0,0,50" scale=3 mesh="ast1.mesh" /> |
---|
78 | </attached> |
---|
79 | </MovableEntity> |
---|
80 | </attached> |
---|
81 | </MovableEntity> |
---|
82 | |
---|
83 | <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
84 | <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
85 | <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
86 | <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /> |
---|
87 | <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /> |
---|
88 | |
---|
89 | <!-- |
---|
90 | <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
91 | <events> |
---|
92 | <spawn> |
---|
93 | <EventTrigger delay=1> |
---|
94 | <events> |
---|
95 | <trigger> |
---|
96 | <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
97 | </trigger> |
---|
98 | </events> |
---|
99 | </EventTrigger> |
---|
100 | </spawn> |
---|
101 | </events> |
---|
102 | </ParticleSpawner> |
---|
103 | --> |
---|
104 | |
---|
105 | <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false> |
---|
106 | <events> |
---|
107 | <activity> |
---|
108 | <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" /> |
---|
109 | </activity> |
---|
110 | </events> |
---|
111 | </ParticleEmitter> |
---|
112 | <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false> |
---|
113 | <events> |
---|
114 | <activity> |
---|
115 | <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" /> |
---|
116 | </activity> |
---|
117 | </events> |
---|
118 | </ParticleEmitter> |
---|
119 | <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false> |
---|
120 | <events> |
---|
121 | <activity> |
---|
122 | <EventListener event=firetrigger1 /> |
---|
123 | <EventListener event=firetrigger2 /> |
---|
124 | </activity> |
---|
125 | </events> |
---|
126 | </ParticleEmitter> |
---|
127 | |
---|
128 | |
---|
129 | <EventDispatcher> |
---|
130 | <targets> |
---|
131 | <EventTarget name=fireright /> |
---|
132 | <EventTarget name=firecenter /> |
---|
133 | <EventTarget name=fireleft /> |
---|
134 | </targets> |
---|
135 | <events> |
---|
136 | <activity> |
---|
137 | <DistanceTrigger position="0,0,200" distance=50 target="ControllableEntity" /> |
---|
138 | </activity> |
---|
139 | </events> |
---|
140 | </EventDispatcher> |
---|
141 | |
---|
142 | <!-- |
---|
143 | <EventDispatcher> |
---|
144 | <targets> |
---|
145 | <EventTarget name=bltest /> |
---|
146 | </targets> |
---|
147 | <events> |
---|
148 | <activity> |
---|
149 | <DistanceTrigger switch=1 position="0,200,0" distance=100 target="ControllableEntity" /> |
---|
150 | </activity> |
---|
151 | </events> |
---|
152 | </EventDispatcher> |
---|
153 | --> |
---|
154 | |
---|
155 | <Model position="0,50,0" scale=3 mesh="assff.mesh"> |
---|
156 | <events> |
---|
157 | <visibility> |
---|
158 | <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 /> |
---|
159 | </visibility> |
---|
160 | </events> |
---|
161 | </Model> |
---|
162 | |
---|
163 | |
---|
164 | <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true /> |
---|
165 | <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /--> |
---|
166 | <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true /> |
---|
167 | <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true /> |
---|
168 | <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false /> |
---|
169 | <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false /> |
---|
170 | |
---|
171 | <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" /> |
---|
172 | |
---|
173 | <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" /> |
---|
174 | <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" /> |
---|
175 | <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /--> |
---|
176 | |
---|
177 | |
---|
178 | <?lua |
---|
179 | for i = 1, 0, 1 |
---|
180 | do ?> |
---|
181 | <MovableEntity position="<?lua print(math.random() * 4000 - 2000)?>, <?lua print(math.random() * 4000 - 2000) ?>, <?lua print(math.random() * 4000 - 2000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
182 | <attached> |
---|
183 | <Model scale="<?lua print(math.random() * 15 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
184 | </attached> |
---|
185 | </MovableEntity> |
---|
186 | <?lua |
---|
187 | end |
---|
188 | ?> |
---|
189 | |
---|
190 | </Scene> |
---|
191 | </Level> |
---|