1 | <LevelInfo |
---|
2 | name = "OrxoBlox" |
---|
3 | description = "A clone version of the BBTAN game." |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "emptylevel.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("stats.oxo") |
---|
11 | include("OrxoBloxHUD.oxo") |
---|
12 | include("templates/lodInformation.oxt") |
---|
13 | ?> |
---|
14 | |
---|
15 | <Template name=OrxoBloxbatcameras defaults=0> |
---|
16 | <OrxoBloxBat> |
---|
17 | <camerapositions> |
---|
18 | <CameraPosition position="0,150,0" pitch=-90 absolute=true /> |
---|
19 | <CameraPosition position="0,50,160" drag=true mouselook=true /> |
---|
20 | <CameraPosition position="0,40,125" drag=true mouselook=true /> |
---|
21 | <CameraPosition position="0,30, 90" drag=true mouselook=true /> |
---|
22 | </camerapositions> |
---|
23 | </OrxoBloxBat> |
---|
24 | </Template> |
---|
25 | |
---|
26 | <Template name=OrxoBloxbat> |
---|
27 | <OrxoBloxBat camerapositiontemplate=OrxoBloxbatcameras> |
---|
28 | <attached> |
---|
29 | <Model position="60,0,-50" mesh="cube.mesh" scale3D="2,2,14" /> |
---|
30 | <!--Model roll=180 mesh="OrxoBloxbat.mesh" scale=0.045 /--> |
---|
31 | </attached> |
---|
32 | </OrxoBloxBat> |
---|
33 | </Template> |
---|
34 | |
---|
35 | <Template name=OrxoBloxball> |
---|
36 | <OrxoBloxBall |
---|
37 | defScoreSound = "sounds/PlayerWinScore_cut.ogg" |
---|
38 | defBatSound = "sounds/Button.ogg" |
---|
39 | defBoundarySound = "sounds/Button.ogg"> |
---|
40 | <attached> |
---|
41 | <Model mesh="sphere.mesh" scale=2 /> |
---|
42 | <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /--> |
---|
43 | <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" /> |
---|
44 | <Light type=point diffuse="1.0, 1.0, 0.5" specular="1.0, 1.0, 0.5" attenuation="1200, 1.0, 0.0035, 0.00005" /> |
---|
45 | <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn /> |
---|
46 | </attached> |
---|
47 | <eventlisteners> |
---|
48 | <EventTarget target=hiteffect /> |
---|
49 | </eventlisteners> |
---|
50 | </OrxoBloxBall> |
---|
51 | </Template> |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | <Level |
---|
57 | plugins = "OrxoBlox" |
---|
58 | gametype = "OrxoBlox" |
---|
59 | > |
---|
60 | |
---|
61 | <templates> |
---|
62 | <Template link=lodtemplate_default /> |
---|
63 | </templates> |
---|
64 | <?lua include("includes/notifications.oxi") ?> |
---|
65 | |
---|
66 | <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/> |
---|
67 | |
---|
68 | |
---|
69 | <Scene |
---|
70 | ambientlight = "0.5, 0.5, 0.5" |
---|
71 | skybox = "Orxonox/skyBoxBasic" |
---|
72 | > |
---|
73 | <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" /> |
---|
74 | |
---|
75 | <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" /> |
---|
76 | |
---|
77 | <MovableEntity rotationrate=5 rotationaxis="0,0,1"> |
---|
78 | <attached> |
---|
79 | <OrxoBloxCenterpoint name=OrxoBloxcenter dimension="100,120" balltemplate=OrxoBloxball battemplate=OrxoBloxbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25> |
---|
80 | <attached> |
---|
81 | <!-- Balken die das Spielfeld begrenzen. --> |
---|
82 | <Model position="0,0,-50" mesh="cube.mesh" scale3D="60,1,1" /> |
---|
83 | <Model position="60,0,0" mesh="cube.mesh" scale3D="1,1,50"/> |
---|
84 | <Model position="-60,0,0" mesh="cube.mesh" scale3D="1,1,50"/> |
---|
85 | |
---|
86 | <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
87 | <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
88 | <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
89 | <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> |
---|
90 | <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
91 | <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
92 | <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
93 | |
---|
94 | <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
95 | <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
96 | <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
97 | <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> |
---|
98 | <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
99 | <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
100 | <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
101 | |
---|
102 | <!-- TODO: Create a OrxoBlox Score Sound and include it here. |
---|
103 | This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg --> |
---|
104 | <!--WorldSound name="scoreSound" position="0,0,0" source="sounds/OrxoBloxScore_cut.ogg" > |
---|
105 | <events> |
---|
106 | <play> |
---|
107 | <EventListener event=OrxoBloxcenter /> |
---|
108 | </play> |
---|
109 | </events> |
---|
110 | </WorldSound--> |
---|
111 | |
---|
112 | <?lua |
---|
113 | for i = 1, 15, 1 do |
---|
114 | ?> |
---|
115 | <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> /> |
---|
116 | <?lua end ?> |
---|
117 | |
---|
118 | </attached> |
---|
119 | </OrxoBloxCenterpoint> |
---|
120 | </attached> |
---|
121 | </MovableEntity> |
---|
122 | |
---|
123 | <EventDispatcher> |
---|
124 | <targets> |
---|
125 | <EventTarget target=scoreeffect_right /> |
---|
126 | <EventTarget target=scoreeffect_center /> |
---|
127 | </targets> |
---|
128 | <events> |
---|
129 | <spawn> |
---|
130 | <EventFilter> |
---|
131 | <names> |
---|
132 | <EventName name=right /> |
---|
133 | </names> |
---|
134 | <EventListener event=OrxoBloxcenter /> |
---|
135 | </EventFilter> |
---|
136 | </spawn> |
---|
137 | </events> |
---|
138 | </EventDispatcher> |
---|
139 | <EventDispatcher> |
---|
140 | <targets> |
---|
141 | <EventTarget target=scoreeffect_left /> |
---|
142 | <EventTarget target=scoreeffect_center /> |
---|
143 | </targets> |
---|
144 | <events> |
---|
145 | <spawn> |
---|
146 | <EventFilter> |
---|
147 | <names> |
---|
148 | <EventName name=left /> |
---|
149 | </names> |
---|
150 | <EventListener event=OrxoBloxcenter /> |
---|
151 | </EventFilter> |
---|
152 | </spawn> |
---|
153 | </events> |
---|
154 | </EventDispatcher> |
---|
155 | |
---|
156 | <?lua |
---|
157 | dofile("includes/CuboidSpaceStation.lua") |
---|
158 | ?> |
---|
159 | |
---|
160 | <StaticEntity pitch=15> |
---|
161 | <attached> |
---|
162 | <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1"> |
---|
163 | <attached> |
---|
164 | <StaticEntity position="-2500,0,0" yaw=90 pitch=90> |
---|
165 | <attached> |
---|
166 | <?lua |
---|
167 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
168 | ?> |
---|
169 | </attached> |
---|
170 | </StaticEntity> |
---|
171 | </attached> |
---|
172 | </MovableEntity> |
---|
173 | </attached> |
---|
174 | </StaticEntity> |
---|
175 | |
---|
176 | <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45> |
---|
177 | <attached> |
---|
178 | <Model scale=10 mesh="Carrier.mesh" /> |
---|
179 | <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" /> |
---|
180 | <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" /> |
---|
181 | </attached> |
---|
182 | </StaticEntity> |
---|
183 | |
---|
184 | <StaticEntity pitch=70> |
---|
185 | <attached> |
---|
186 | <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974> |
---|
187 | <attached> |
---|
188 | <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0"> |
---|
189 | <attached> |
---|
190 | <Model position="0,0,0" scale=10 mesh="satellite.mesh" /> |
---|
191 | <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50> |
---|
192 | <attached> |
---|
193 | <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/> |
---|
194 | </attached> |
---|
195 | </MovableEntity> |
---|
196 | <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
197 | <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
198 | <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
199 | <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
200 | </attached> |
---|
201 | </StaticEntity> |
---|
202 | </attached> |
---|
203 | </MovableEntity> |
---|
204 | </attached> |
---|
205 | </StaticEntity> |
---|
206 | |
---|
207 | <?lua |
---|
208 | for i = 1, 10, 1 do |
---|
209 | ?> |
---|
210 | <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
211 | <attached> |
---|
212 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
213 | </attached> |
---|
214 | </MovableEntity> |
---|
215 | <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
216 | <attached> |
---|
217 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
218 | </attached> |
---|
219 | </MovableEntity> |
---|
220 | |
---|
221 | <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
222 | <attached> |
---|
223 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
224 | </attached> |
---|
225 | </MovableEntity> |
---|
226 | <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
227 | <attached> |
---|
228 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
229 | </attached> |
---|
230 | </MovableEntity> |
---|
231 | |
---|
232 | <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
233 | <attached> |
---|
234 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
235 | </attached> |
---|
236 | </MovableEntity> |
---|
237 | <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
238 | <attached> |
---|
239 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
240 | </attached> |
---|
241 | </MovableEntity> |
---|
242 | <?lua end ?> |
---|
243 | |
---|
244 | </Scene> |
---|
245 | </Level> |
---|
246 | |
---|