Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12305 was 12305, checked in by jeromela, 5 years ago

Ball bewegt sich in zwei Richtungen

File size: 11.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<Level
54  plugins = "OrxoBlox"
55 gametype = "OrxoBlox"
56>
57
58 <templates>
59    <Template link=lodtemplate_default />
60  </templates>
61  <?lua include("includes/notifications.oxi") ?>
62
63  <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/>
64 
65
66  <Scene
67   ambientlight = "0.5, 0.5, 0.5"
68   skybox       = "Orxonox/skyBoxBasic"
69  >
70    <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" />
71
72    <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" />
73
74    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
75      <attached>
76        <OrxoBloxCenterpoint name=OrxoBloxcenter dimension="120,100" balltemplate=OrxoBloxball battemplate=OrxoBloxbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
77          <attached>
78            <!-- Balken die das Spielfeld begrenzen. -->
79            <Model position="0,0,-50" mesh="cube.mesh" scale3D="60,1,1" />
80            <Model position="60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
81            <Model position="-60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
82
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 />
90
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
99<!-- TODO: Create a OrxoBlox Score Sound and include it here.
100This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg -->
101            <!--WorldSound name="scoreSound" position="0,0,0" source="sounds/OrxoBloxScore_cut.ogg" >
102              <events>
103                <play>
104                  <EventListener event=OrxoBloxcenter />
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>
116        </OrxoBloxCenterpoint>
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>
131            <EventListener event=OrxoBloxcenter />
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>
147            <EventListener event=OrxoBloxcenter />
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 ?>
240   
241  </Scene>
242</Level>
243
Note: See TracBrowser for help on using the repository browser.