Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/AI_HS15/data/levels/AITest.oxw @ 10655

Last change on this file since 10655 was 10655, checked in by gania, 9 years ago
File size: 1.6 KB
Line 
1<LevelInfo
2 name = "AI testing level"
3 description = "A level with two opposing AI teams"
4 tags = "test"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
15  include("templates/spaceshipAssff.oxt")
16  include("templates/spaceshipPirate.oxt")
17  include("templates/spaceshipEscort.oxt")
18  include("templates/spaceshipRing.oxt")
19  include("templates/spaceshipSwallow.oxt")
20?>
21
22<Level>
23  <templates>
24    <Template link=lodtemplate_default />
25  </templates>
26  <?lua include("includes/notifications.oxi") ?>
27
28  <Scene
29    ambientlight = "0.8, 0.8, 0.8"
30    skybox       = "Orxonox/Starbox"
31  >
32
33    <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"/>
34    <SpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
35   
36    <?lua
37      for i = 0, 5, 1 do
38    ?>
39    <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 2000 ?>" lookat="0,0,0">
40      <templates>
41        <Template link=spaceshipassff />
42      </templates>
43      <controller>
44        <AIController accuracy=10 team=1>
45        </AIController>
46      </controller>
47    </SpaceShip>
48    <?lua end ?>
49
50    <?lua
51      for i = 0, 5, 1 do
52    ?>
53    <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 6000 ?>" lookat="0,0,0">
54      <templates>
55        <Template link=spaceshipassff />
56      </templates>
57      <controller>
58        <AIController accuracy=10 team=2>
59        </AIController>
60      </controller>
61    </SpaceShip>
62    <?lua end ?>
63
64
65  </Scene>
66</Level>
67
Note: See TracBrowser for help on using the repository browser.