Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickupsFS14/data/levels/jump.oxw @ 10051

Last change on this file since 10051 was 10051, checked in by fvultier, 10 years ago

Removed a few more files I don't need anymore

File size: 10.7 KB
Line 
1<LevelInfo
2 name = "Jump"
3 description = "Jump in space!"
4 tags = "minigame"
5 screenshot = "pong.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo") 
10  include("jumpHUD.oxo")
11  include("stats.oxo")
12  include("templates/lodInformation.oxt")
13?>
14
15<Template name=jumpfigurecameras defaults=0>
16  <JumpFigure>
17    <camerapositions>
18      <CameraPosition position="0,-150,0" absolute=true mouselook=false drag=false lookat="0,0,0"/>
19    </camerapositions>
20  </JumpFigure>
21</Template>
22
23
24
25<Template name=jumpFigureTemplate>
26  <JumpFigure camerapositiontemplate=jumpfigurecameras mouseFactor="100.0">
27    <attached>
28      <Model position="0,0,0" mesh="sphere.mesh" scale=4 />
29    </attached>
30  <!--
31      <controller>
32        <HumanController />
33      </controller>   
34    -->
35  </JumpFigure>
36</Template>
37
38<Template name=jumpProjectileTemplate>
39  <JumpProjectile>
40    <attached>
41      <Model mesh="Projectile.mesh" scale=1.2  pitch=90/>
42      <ParticleEmitter scale=1 pitch=0 roll=0 position="0, 0, 0" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=0.0 />
43    </attached>
44  </JumpProjectile>
45</Template>
46
47<Template name=jumpPlatformStaticTemplate>
48  <JumpPlatformStatic>
49    <attached>
50      <Model mesh="Platform01.mesh" scale=1.2  pitch=90/>
51    </attached>
52  </JumpPlatformStatic>
53</Template>
54
55<Template name=jumpPlatformHMoveTemplate>
56  <JumpPlatformHMove>
57    <attached>
58      <Model mesh="Platform02.mesh" scale=1.2  pitch=90/>
59      <Backlight scale=0.2 colour="0.1, 0.1, 1.0" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
60    </attached>
61  </JumpPlatformHMove>
62</Template>
63
64<Template name=jumpPlatformVMoveTemplate>
65  <JumpPlatformVMove>
66    <attached>
67      <Model mesh="Platform03.mesh" scale=1.2  pitch=90/>
68      <Backlight scale=0.2 colour="1.0, 1.0, 1.0" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
69    </attached>
70  </JumpPlatformVMove>
71</Template>
72
73<Template name=jumpPlatformDisappearTemplate>
74  <JumpPlatformDisappear>
75    <attached>
76      <Model mesh="Platform04.mesh" scale=1.2  pitch=90/>
77      <Backlight scale=0.2 colour="0.0, 0.0, 1.0" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
78            <Backlight scale=0.2 colour="0.0, 1.0, 0.1" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />       
79    </attached>
80  </JumpPlatformDisappear>
81</Template>
82
83<Template name=jumpPlatformTimerTemplate>
84  <JumpPlatformTimer effectPath="Orxonox/BigExplosion1part2" effectStartTime="0.4">
85    <attached>
86      <Model mesh="Platform05.mesh" scale=1.2  pitch=90/>
87      <ParticleEmitter scaled3D="5.0, 1.0, 2.0" pitch=0 roll=0 position="0, 0, -2.0" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=0.0 />
88
89      <!-- <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn /> -->
90    </attached>
91  </JumpPlatformTimer>
92</Template>
93
94<Template name=jumpPlatformFakeTemplate>
95  <JumpPlatformFake>
96    <attached>
97      <Model mesh="Platform06.mesh" scale=1.2  pitch=90/>
98      <ParticleEmitter scale3D="0.2,0.2,0.2" pitch=0 roll=0 position="0, 0, -2.5" source="Orxonox/sparks" lifetime=1.0 loop=1 startdelay=0.0 />
99    </attached>
100  </JumpPlatformFake>
101</Template>
102
103<Template name=jumpPlatformEnemy1Template>
104  <JumpEnemy>
105    <attached>
106      <Model mesh="cube.mesh" scale3D="10.0, 4.0, 4.0"  pitch=90/>
107    </attached>
108  </JumpEnemy>
109</Template>
110
111
112<Level gametype = "Jump">
113  <templates>
114    <Template link=lodtemplate_default />
115  </templates>
116  <?lua include("includes/notifications.oxi") ?>
117
118  <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/>
119  <JumpBot />
120
121  <Scene ambientlight="1.0, 1.0, 1.0" skybox="Orxonox/skyBoxBasic">
122    <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" />
123
124    <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" />
125
126    <MovableEntity>
127      <attached>
128        <JumpCenterpoint
129          name=jumpcenter
130          dimension="120,80"
131          sectionLength="100"
132          platformLength="12"
133
134          platformStaticTemplate=jumpPlatformStaticTemplate
135          platformHMoveTemplate=jumpPlatformHMoveTemplate
136          platformVMoveTemplate=jumpPlatformVMoveTemplate
137          platformDisappearTemplate=jumpPlatformDisappearTemplate
138          platformTimerTemplate=jumpPlatformTimerTemplate
139          platformFakeTemplate=jumpPlatformFakeTemplate
140          enemy1Template=jumpPlatformEnemy1Template
141          figureTemplate=jumpFigureTemplate
142          projectileTemplate=jumpProjectileTemplate>
143
144          <attached>
145
146            <Model position="0,0,-1000" mesh="Platform01.mesh" scale="1" />
147            <Model position="0,0,-1000" mesh="Platform02.mesh" scale="1" />
148            <Model position="0,0,-1000" mesh="Platform03.mesh" scale="1" />
149            <Model position="0,0,-1000" mesh="Platform04.mesh" scale="1" />
150            <Model position="0,0,-1000" mesh="Platform05.mesh" scale="1" />
151            <Model position="0,0,-1000" mesh="Platform06.mesh" scale="1" />
152
153            <Model position="0,0,-1000" mesh="Projectile.mesh" scale="1" />
154
155            <!--                   
156            <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
157            <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />           
158           
159            <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
160            <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
161            <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
162            <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
163            <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
164            <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
165            <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
166
167            <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
168            <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
169            <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
170            <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
171            <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
172            <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
173            <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
174           
175            <?lua
176              for i = 1, 15, 1 do
177            ?>
178              <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) ?> />
179            <?lua end ?>
180            -->
181          </attached>
182        </JumpCenterpoint>
183      </attached>
184    </MovableEntity>
185
186    <EventDispatcher>
187      <targets>
188        <EventTarget target=scoreeffect_right />
189        <EventTarget target=scoreeffect_center />
190      </targets>
191      <events>
192        <spawn>
193          <EventFilter>
194            <names>
195              <EventName name=right />
196            </names>
197            <EventListener event=jumpcenter />
198          </EventFilter>
199        </spawn>
200      </events>
201    </EventDispatcher>
202    <EventDispatcher>
203      <targets>
204        <EventTarget target=scoreeffect_left />
205        <EventTarget target=scoreeffect_center />
206      </targets>
207      <events>
208        <spawn>
209          <EventFilter>
210            <names>
211              <EventName name=left />
212            </names>
213            <EventListener event=jumpcenter />
214          </EventFilter>
215        </spawn>
216      </events>
217    </EventDispatcher>
218
219    <?lua
220      dofile("includes/CuboidSpaceStation.lua")
221    ?>
222
223    <StaticEntity pitch=15>
224      <attached>
225        <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
226          <attached>
227            <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
228              <attached>
229                <?lua
230                  createSpaceStationPar(0,2,1,2,1,4,1,50)
231                ?>
232              </attached>
233            </StaticEntity>
234          </attached>
235        </MovableEntity>
236      </attached>
237    </StaticEntity>
238
239    <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
240      <attached>
241        <Model scale=10 mesh="Carrier.mesh" />
242        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
243        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
244      </attached>
245    </StaticEntity>
246
247    <StaticEntity pitch=70>
248      <attached>
249        <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
250          <attached>
251            <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
252              <attached>
253                <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
254                <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
255                  <attached>
256                    <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
257                  </attached>
258                </MovableEntity>
259                <!--
260                <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
261                <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
262                <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
263                <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
264              -->
265              </attached>
266            </StaticEntity>
267          </attached>
268        </MovableEntity>
269      </attached>
270    </StaticEntity>
271  </Scene>
272</Level>
Note: See TracBrowser for help on using the repository browser.