Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/gametype_asteroids.oxw @ 5497

Last change on this file since 5497 was 5497, checked in by Aurelian, 15 years ago

New Particle Effect for ForceField, not realy working jet

File size: 2.1 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3  include("overlay/stats.oxo")
4  include("levels/spaceshiptemplates_presentation.oxw")
5?>
6
7<Level
8 name         = "Asteroids Race"
9 description  = "testmap for gametype asteroid race"
10 gametype     = Asteroids
11>
12  <Scene
13   ambientlight = "0.5, 0.5, 0.5"
14   skybox       = "Orxonox/Starbox"
15  >
16
17<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" />
18
19
20<SpawnPoint position="-300,300,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
21
22
23
24<?lua
25for i = 1, 100, 1
26do ?>
27    <Model scale="<?lua print(math.random() * 150 + 30) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" position="<?lua print(math.random() * 10000 ) ?>,<?lua print(math.random() * 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>">
28
29</Model>
30<?lua
31end
32?>
33
34
35
36<ForceField position="0,-500,0" direction="0,1,0" diameter=1000 velocity=50>
37  <attached>
38    <ParticleEmitter source="Orxonox/forcefield" lifetime=10000 startdelay=0 />
39  </attached>         
40 </ForceField>
41 
42<ForceField position="1000,-100,0" direction="0,1,1" diameter=1500 velocity=100/>
43<ForceField position="1800,300,-500" direction="0,0,1" diameter=800 velocity=50/>
44
45
46
47<CheckPoint name=trigger1 position="600,300,0" isdestination=false stayactive=true distance=20 />
48
49
50<CheckPoint name=trigger2 position="1000,300,600" isdestination=false stayactive=true distance=20 >
51  <events>
52    <activity>
53      <EventListener event=trigger1 />
54    </activity>
55  </events>
56</CheckPoint>
57
58
59<CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=20 >
60  <events>
61    <activity>
62      <EventListener event=trigger2 />
63    </activity>
64  </events>
65</CheckPoint>
66
67<CheckPoint name=trigger4 position="2600,400,1100" stayactive=true distance=20 >
68  <events>
69    <activity>
70      <EventListener event=trigger3 />
71    </activity>
72  </events>
73</CheckPoint>
74
75<CheckPoint name=trigger5 position="3600,300,1400" isdestination=true stayactive=true distance=20 >
76  <events>
77    <activity>
78      <EventListener event=trigger4 />
79    </activity>
80  </events>
81</CheckPoint>
82
83
84  </Scene>
85</Level>
Note: See TracBrowser for help on using the repository browser.