Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12269 was 12269, checked in by ahuwyler, 6 years ago

ES FUNKT!

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