[Orxonox-commit 302] r2100 - media/levels

Aurelian at orxonox.net Aurelian at orxonox.net
Mon Apr 27 17:14:28 CEST 2009


Author: Aurelian
Date: 2009-04-27 17:14:28 +0200 (Mon, 27 Apr 2009)
New Revision: 2100

Modified:
   media/levels/gametype_asteroids.oxw
Log:
CHeckpoints working


Modified: media/levels/gametype_asteroids.oxw
===================================================================
--- media/levels/gametype_asteroids.oxw	2009-04-27 14:25:04 UTC (rev 2099)
+++ media/levels/gametype_asteroids.oxw	2009-04-27 15:14:28 UTC (rev 2100)
@@ -6,7 +6,8 @@
 
 <Level
  name         = "Asteroids Race"
- description  = "tesmap for gametype asteroid race"
+ description  = "testmap for gametype asteroid race"
+ gametype     = Asteroids
 >
   <Scene
    ambientlight = "0.5, 0.5, 0.5"
@@ -15,35 +16,32 @@
 
 
 
-    <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" />
+<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" />
 
 
-<?lua
-for i = 1, 10, 1 
-do ?>
-    <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
-<?lua 
-end
-?>
+<SpawnPoint position="0,0,0" lookat="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
 
+<CheckPoint name=trigger1 position="0,0,200" isdestination=false stayactive=true distance=20 />
 
-<DistanceTrigger name=trigger1 position="0,0,0" stayactive=true distance=20 />
 
-<DistanceTrigger name=trigger2 position="0,0,200" stayactive=true distance=20>
+<CheckPoint name=trigger2 position="0,0,400" isdestination=false stayactive=true distance=20 >
   <events>
     <activity>
       <EventListener event=trigger1 />
     </activity>
   </events>
-</DistanceTrigger>
+</CheckPoint>
 
-<DistanceTrigger name=trigger3 position="0,0,400" stayactive=true distance=20>
+
+<CheckPoint name=trigger3 position="0,0,600" isdestination=true stayactive=true distance=20 >
   <events>
     <activity>
       <EventListener event=trigger2 />
     </activity>
   </events>
-</DistanceTrigger>
+</CheckPoint>
 
+
+
   </Scene>
 </Level>




More information about the Orxonox-commit mailing list