Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spacerace/data/levels/spaceRace.oxw @ 8538

Last change on this file since 8538 was 8494, checked in by msalomon, 14 years ago

RaceCheckPoint type and test level for the spaceRace gametype.

File size: 6.3 KB
Line 
1<?lua
2  include("HUDTemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceshipAssff.oxt")
5  include("templates/lodInformation.oxt")
6?>
7
8<LevelInfo
9 name = "Space Race"
10 description = "Test level for the gametype Space Race."
11 tags = "test"
12/>
13
14<?lua
15  include("stats.oxo")
16  include("HUDTemplates3.oxo")
17  include("templates/lodInformation.oxt")
18?>
19
20<?lua
21  include("templates/spaceshipAssff.oxt")
22  include("templates/spaceshipPirate.oxt")
23?>
24
25<Level
26 name         = "Space Race"
27 description  = "Test level for the gametype Space Race."
28 gametype     = SpaceRace
29>
30  <templates>
31    <Template link=lodtemplate_default />
32  </templates>
33
34  <Scene
35    ambientlight = "0.8, 0.8, 0.8"
36    skybox       = "Orxonox/skyBoxMoreNebula"
37  >
38
39    <?lua math.randomseed(99) ?>
40
41    <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"/>
42    <SpawnPoint team=0 position="0,-2500,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
43
44    <!-- ------------------CheckPoints----------------- -->
45    <RaceCheckPoint name=checkpoint1 position="0,-2000,1000" scale=1 distance=20 checkpointindex=0 islast=false>
46    <attached>
47      <Model mass="100" scale="100" mesh="checkPoint.mesh" />
48    </attached>
49    </RaceCheckPoint>
50
51    <RaceCheckPoint name=checkpoint2 position="0,-1400,1400" scale=1 distance=20 checkpointindex=1 islast=false>
52    <attached>
53      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
54    </attached>
55    </RaceCheckPoint>
56
57    <RaceCheckPoint name=checkpoint3 position="0,500,2500" scale=1 distance=20 checkpointindex=2 islast=false>
58    <attached>
59      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
60    </attached>
61    </RaceCheckPoint>
62
63    <RaceCheckPoint name=checkpoint4 position="0,1500,1700" scale=1 distance=20 checkpointindex=3 islast=false>
64    <attached>
65      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
66    </attached>
67    </RaceCheckPoint>
68
69    <RaceCheckPoint name=checkpoint5 position="0,2200,500" scale=1 distance=20 checkpointindex=4 islast=false>
70    <attached>
71      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
72    </attached>
73    </RaceCheckPoint>
74
75    <RaceCheckPoint name=checkpoint6 position="0,1500,-800" scale=1 distance=20 checkpointindex=5 islast=false>
76    <attached>
77      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
78    </attached>
79    </RaceCheckPoint>
80
81    <RaceCheckPoint name=checkpoint7 position="0,200,-1900" scale=1 distance=20 checkpointindex=6 islast=false>
82    <attached>
83      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
84    </attached>
85    </RaceCheckPoint>
86
87    <RaceCheckPoint name=checkpoint8 position="0,-500,-1500" scale=1 distance=20 checkpointindex=7 islast=false>
88    <attached>
89      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
90    </attached>
91    </RaceCheckPoint>
92
93    <RaceCheckPoint name=checkpoint9 position="0,-1300,-800" scale=1 distance=20 checkpointindex=8 islast=false>
94    <attached>
95      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
96    </attached>
97    </RaceCheckPoint>
98
99    <RaceCheckPoint name=checkpoint10 position="0,-2500,0" scale=1 distance=20 checkpointindex=9 islast=true>
100    <attached>
101      <Billboard position=" 0,0,0" material="Examples/Flare" colour="1.0, 0.0, 0.0" />
102    </attached>
103    </RaceCheckPoint>
104
105    <!-- ------------------Planet needs gravity----------------- -->
106    <Planet position="0,0,0" scale=400 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
107    <StaticEntity position="0,0,0" collisionType=static>
108        <collisionShapes>
109            <SphereCollisionShape radius="399" />
110        </collisionShapes>
111    </StaticEntity>
112
113    <!-- ---------------asteroid ellypse----------------- -->
114    <?lua
115    max = 20
116    for i = 0, max, 1
117    do
118        y = math.sin(i/max*6)*2000
119    z = math.cos(i/max*6)*2500
120    x = 0
121    ?>
122<?lua
123for k = 1, 20, 1
124do
125j = math.random()
126?>
127
128    <StaticEntity position="<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>" scale="<?lua print(j * 5) ?>" >
129      <attached>
130        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
131          <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
132            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
133          </attached> <?lua end ?>
134        </Model>
135      </attached>
136      <?lua if i == 5 then ?><collisionShapes>
137        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
138      </collisionShapes> <?lua end ?>
139    </StaticEntity>
140<?lua
141end
142?>
143<?lua end ?>
144
145    <ForceField position="9000,9000,0" direction="-1,-1,0" diameter=500 velocity=5000 length=5000 />
146        <MovableEntity position="9000,9000,0">
147            <attached>
148                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
149                <?lua for i=0,20,1 do ?>
150                    <Billboard position="<?lua print(-i*200*1.414/2) ?>,<?lua print(-i*200*1.414/2) ?>,-100" material="Examples/Flare" colour="0.5,0,0" scale=1/>
151                    <Billboard position="<?lua print(-i*200*1.414/2) ?>,<?lua print(-i*200*1.414/2) ?>,100" material="Examples/Flare" colour="0.5,0,0" scale=1/>
152                <?lua end ?>
153                </attached>
154        </MovableEntity>
155
156    <ForceField position="0,500,-2500" direction="1,1,0" diameter=500 velocity=5000 length=5000 />
157        <MovableEntity position="9000,9000,0">
158            <attached>
159                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
160                <?lua for i=0,20,1 do ?>
161                    <Billboard position="<?lua print(i*200*1.414/2) ?>,<?lua print(i*200*1.414/2) ?>,-100" material="Examples/Flare" colour="0.5,0,0" scale=1/>
162                    <Billboard position="<?lua print(i*200*1.414/2) ?>,<?lua print(i*200*1.414/2) ?>,100" material="Examples/Flare" colour="0.5,0,0" scale=1/>
163                <?lua end ?>
164                </attached>
165        </MovableEntity>
166
167  </Scene>
168</Level>
Note: See TracBrowser for help on using the repository browser.