[Orxonox-commit 5996] r10655 - code/branches/AI_HS15/data/levels

gania at orxonox.net gania at orxonox.net
Sun Oct 18 20:57:24 CEST 2015


Author: gania
Date: 2015-10-18 20:57:24 +0200 (Sun, 18 Oct 2015)
New Revision: 10655

Added:
   code/branches/AI_HS15/data/levels/AITest.oxw
Log:


Added: code/branches/AI_HS15/data/levels/AITest.oxw
===================================================================
--- code/branches/AI_HS15/data/levels/AITest.oxw	                        (rev 0)
+++ code/branches/AI_HS15/data/levels/AITest.oxw	2015-10-18 18:57:24 UTC (rev 10655)
@@ -0,0 +1,67 @@
+<LevelInfo
+ name = "AI testing level"
+ description = "A level with two opposing AI teams"
+ tags = "test"
+ screenshot = "emptylevel.png"
+/>
+
+<?lua
+  include("stats.oxo")
+  include("HUDTemplates3.oxo")
+  include("templates/lodInformation.oxt")
+?>
+
+<?lua
+  include("templates/spaceshipAssff.oxt")
+  include("templates/spaceshipPirate.oxt")
+  include("templates/spaceshipEscort.oxt")
+  include("templates/spaceshipRing.oxt")
+  include("templates/spaceshipSwallow.oxt")
+?>
+
+<Level>
+  <templates>
+    <Template link=lodtemplate_default />
+  </templates>
+  <?lua include("includes/notifications.oxi") ?>
+
+  <Scene
+    ambientlight = "0.8, 0.8, 0.8"
+    skybox       = "Orxonox/Starbox"
+  >
+
+    <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"/>
+    <SpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+    
+    <?lua
+      for i = 0, 5, 1 do
+    ?>
+    <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 2000 ?>" lookat="0,0,0">
+      <templates>
+        <Template link=spaceshipassff />
+      </templates>
+      <controller>
+        <AIController accuracy=10 team=1>
+        </AIController>
+      </controller>
+    </SpaceShip>
+    <?lua end ?>
+
+    <?lua
+      for i = 0, 5, 1 do
+    ?>
+    <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 6000 ?>" lookat="0,0,0">
+      <templates>
+        <Template link=spaceshipassff />
+      </templates>
+      <controller>
+        <AIController accuracy=10 team=2>
+        </AIController>
+      </controller>
+    </SpaceShip>
+    <?lua end ?>
+
+
+  </Scene>
+</Level>
+




More information about the Orxonox-commit mailing list