Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/data/levels/Spacerace2.oxw @ 10422

Last change on this file since 10422 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 8.8 KB
Line 
1<LevelInfo
2 name = "Spacerace 2"
3 description = "New Spacerace with Multiple Paths."
4 tags = "gametype"
5 screenshot = "spacerace2.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12
13  include("templates/spaceshipAssff.oxt")
14
15?>
16
17<?lua
18  include("templates/spaceshipAssff2.oxt")
19  include("templates/spaceshipPirate.oxt")
20?>
21
22<Level
23 name         = "Spacerace2"
24 description  = "Just a few tests"
25gametype = SpaceRace
26>
27  <templates>
28    <Template link=lodtemplate_default />
29  </templates>
30  <?lua include("includes/notifications.oxi") ?>
31
32  <Scene
33    ambientlight = "0.8, 0.8, 0.8"
34    skybox       = "Orxonox/Starbox"
35  >
36
37    <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"/>
38
39
40    <SpaceRaceManager>
41        <checkpoints>
42            <RaceCheckPoint name="checkpoint1" position="0,-2000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false" nextcheckpoints="1,2,-1">
43                <attached>
44                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
45                </attached>
46                <collisionShapes>
47                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
48                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
49                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
50                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
51                </collisionShapes>
52            </RaceCheckPoint>
53
54            <RaceCheckPoint name="checkpoint2" position="0,2100,2300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false" nextcheckpoints="3,-1,-1">
55                <attached>
56                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
57                </attached>
58                <collisionShapes>
59                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
60                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
61                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
62                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
63                </collisionShapes>
64            </RaceCheckPoint>
65
66            <RaceCheckPoint name="checkpoint3" position="0,700,2700" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
67                <attached>
68                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
69                </attached>
70                <collisionShapes>
71                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
72                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
73                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
74                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
75                </collisionShapes>
76            </RaceCheckPoint>
77
78            <RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true">
79                <attached>
80                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
81                </attached>
82                <collisionShapes>
83                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
84                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
85                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
86                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
87                </collisionShapes>
88            </RaceCheckPoint>
89        </checkpoints>
90    </SpaceRaceManager>
91
92
93    <SpaceShip position="0,0,200" lookat="0,0,0">
94      <templates>
95        <Template link=spaceshipassff />
96      </templates>
97      <controller>
98        <WaypointPatrolController alertnessradius=0 team=10>
99          <waypoints>
100            <Model mesh="cube.mesh" scale=0 position="0,-2000,1000" />
101            <Model mesh="cube.mesh" scale=0 position="0,2100,2300" />
102            <Model mesh="cube.mesh" scale=0 position="0,-400,300" />
103          </waypoints>
104        </WaypointPatrolController>
105      </controller>
106    </SpaceShip>
107
108    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
109
110
111    <!-- ------------------Planet----------------- -->
112    <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
113    <StaticEntity position="0,0,0" collisionType=static>
114        <collisionShapes>
115            <SphereCollisionShape radius="399" />
116        </collisionShapes>
117    </StaticEntity>
118
119    <!-- ---------------asteroid ellipse----------------- -->
120    <?lua
121    max = 20
122    for i = 0, max, 1
123    do
124    y = math.sin(i/max*6)*2000
125    z = math.cos(i/max*6)*2500
126    x = 0
127    ?>
128    <?lua
129    for k = 1, 15, 1
130    do
131    j = math.random()
132    ?>
133
134    <MovableEntity
135      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
136      collisionType = "dynamic"
137      linearDamping = "0.5"
138      angularDamping = "0.01"
139      collisiondamage = "0.01"
140      enablecollisiondamage = "true"
141      scale="<?lua print(j * 5) ?>" >
142      <attached>
143        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
144      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
145            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
146          </attached> <?lua end ?>
147        </Model>
148      </attached>
149      <collisionShapes>
150        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
151      </collisionShapes>
152    </MovableEntity>
153    <?lua
154    end
155    ?>
156    <?lua end ?>
157
158    <!-- ---------------ForceFields----------------- -->
159    <ForceField position="0,-700,2700" direction="0,1,0" diameter=500 velocity=2000 length=600 />
160        <MovableEntity position="0,-400,2700">
161            <attached>
162                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
163                <?lua for i=0,15,1 do ?>
164                    <Billboard position="-200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
165                    <Billboard position="200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
166                <?lua end ?>
167                </attached>
168        </MovableEntity>
169
170     <ForceField position="0,2500,2000" direction="0,0,-1" diameter=250 velocity=2000 length=600 />
171        <MovableEntity position="0,2500,2000">
172            <attached>
173                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
174                <?lua for i=0,15,1 do ?>
175                    <Billboard position="-100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
176                    <Billboard position="100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
177                <?lua end ?>
178                </attached>
179        </MovableEntity>
180
181    <ForceField position="0,1300,-800" direction="0,-1,-1" diameter=250 velocity=2000 length=800 />
182        <MovableEntity position="0,1300,-800">
183            <attached>
184                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
185                <?lua for i=0,20,1 do ?>
186                    <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
187                    <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
188                <?lua end ?>
189                </attached>
190        </MovableEntity>
191
192    <ForceField position="0,-1400,-700" direction="0,-1,1" diameter=250 velocity=2000 length=600 />
193        <MovableEntity position="0,-1400,-700">
194            <attached>
195                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
196                <?lua for i=0,15,1 do ?>
197                    <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
198                    <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
199                <?lua end ?>
200                </attached>
201        </MovableEntity>
202
203
204
205  </Scene>
206</Level>
207
Note: See TracBrowser for help on using the repository browser.