Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw @ 12307

Last change on this file since 12307 was 12307, checked in by ahuwyler, 5 years ago

A Stone is in the game/ Templates are ajusted

File size: 12.6 KB
Line 
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<Template name=OrxoBloxStonescameras defaults=0>
56  <OrxoBloxStones>
57    <camerapositions>
58      <CameraPosition position="55,75,200" absolute=true />
59    </camerapositions>
60  </OrxoBloxStones>
61</Template>
62
63<Template name=OrxoBloxstone>
64  <OrxoBloxStones camerapositiontemplate=OrxoBloxStonescameras >
65    <attached>
66      <Model position="0,0,0" mesh="CuboidBody.mesh" scale=4.5 />
67      <Model position="0,0,0" mesh="cube_orange.mesh" scale=4.3 />
68    </attached>
69  </OrxoBloxStones>
70</Template>
71
72<Template name=OrxoBloxWallcameras defaults=0>
73  <OrxoBloxWall>
74    <camerapositions>
75      <CameraPosition position="55,75,200" absolute=true />
76      <!--CameraPosition position="0,50,160" drag=true mouselook=true />
77      <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /-->
78    </camerapositions>
79  </OrxoBloxWall>
80</Template>
81
82<Template name=OrxoBloxwall>
83  <OrxoBloxWall camerapositiontemplate=OrxoBloxWallcameras>
84  </OrxoBloxWall>
85</Template>
86
87
88
89<Level
90  plugins = "OrxoBlox"
91 gametype = "OrxoBlox"
92>
93
94 <templates>
95    <Template link=lodtemplate_default />
96  </templates>
97  <?lua include("includes/notifications.oxi") ?>
98
99  <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/>
100 
101
102  <Scene
103   ambientlight = "0.5, 0.5, 0.5"
104   skybox       = "Orxonox/skyBoxBasic"
105  >
106    <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" />
107
108    <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" />
109
110    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
111      <attached>
112        <OrxoBloxCenterpoint name=OrxoBloxcenter dimension="120,100" balltemplate=OrxoBloxball battemplate=OrxoBloxbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25 StoneTemplate=OrxoBloxstone WallTemplate=OrxoBloxwall>
113          <attached>
114            <!-- Balken die das Spielfeld begrenzen. -->
115            <Model position="0,0,-50" mesh="cube.mesh" scale3D="60,1,1" />
116            <Model position="60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
117            <Model position="-60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
118
119            <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
120            <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
121            <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
122            <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
123            <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
124            <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
125            <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
126
127            <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
128            <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
129            <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
130            <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
131            <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
132            <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
133            <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
134
135<!-- TODO: Create a OrxoBlox Score Sound and include it here.
136This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg -->
137            <!--WorldSound name="scoreSound" position="0,0,0" source="sounds/OrxoBloxScore_cut.ogg" >
138              <events>
139                <play>
140                  <EventListener event=OrxoBloxcenter />
141                </play>
142              </events>
143            </WorldSound-->
144
145            <?lua
146              for i = 1, 15, 1 do
147            ?>
148              <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) ?> />
149            <?lua end ?>
150
151          </attached>
152        </OrxoBloxCenterpoint>
153      </attached>
154    </MovableEntity>
155
156    <EventDispatcher>
157      <targets>
158        <EventTarget target=scoreeffect_right />
159        <EventTarget target=scoreeffect_center />
160      </targets>
161      <events>
162        <spawn>
163          <EventFilter>
164            <names>
165              <EventName name=right />
166            </names>
167            <EventListener event=OrxoBloxcenter />
168          </EventFilter>
169        </spawn>
170      </events>
171    </EventDispatcher>
172    <EventDispatcher>
173      <targets>
174        <EventTarget target=scoreeffect_left />
175        <EventTarget target=scoreeffect_center />
176      </targets>
177      <events>
178        <spawn>
179          <EventFilter>
180            <names>
181              <EventName name=left />
182            </names>
183            <EventListener event=OrxoBloxcenter />
184          </EventFilter>
185        </spawn>
186      </events>
187    </EventDispatcher>
188
189    <?lua
190      dofile("includes/CuboidSpaceStation.lua")
191    ?>
192
193    <StaticEntity pitch=15>
194      <attached>
195        <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
196          <attached>
197            <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
198              <attached>
199                <?lua
200                  createSpaceStationPar(0,2,1,2,1,4,1,50)
201                ?>
202              </attached>
203            </StaticEntity>
204          </attached>
205        </MovableEntity>
206      </attached>
207    </StaticEntity>
208
209    <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
210      <attached>
211        <Model scale=10 mesh="Carrier.mesh" />
212        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
213        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
214      </attached>
215    </StaticEntity>
216
217    <StaticEntity pitch=70>
218      <attached>
219        <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
220          <attached>
221            <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
222              <attached>
223                <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
224                <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
225                  <attached>
226                    <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
227                  </attached>
228                </MovableEntity>
229                <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
230                <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
231                <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
232                <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
233              </attached>
234            </StaticEntity>
235          </attached>
236        </MovableEntity>
237      </attached>
238    </StaticEntity>
239
240    <?lua
241      for i = 1, 10, 1 do
242    ?>
243      <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) ?>">
244        <attached>
245          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
246        </attached>
247      </MovableEntity>
248      <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) ?>">
249        <attached>
250          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
251        </attached>
252      </MovableEntity>
253
254      <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) ?>">
255        <attached>
256          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
257        </attached>
258      </MovableEntity>
259      <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) ?>">
260        <attached>
261          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
262        </attached>
263      </MovableEntity>
264
265      <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) ?>">
266        <attached>
267          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
268        </attached>
269      </MovableEntity>
270      <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) ?>">
271        <attached>
272          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
273        </attached>
274      </MovableEntity>
275    <?lua end ?>
276   
277  </Scene>
278</Level>
279
Note: See TracBrowser for help on using the repository browser.