Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10679 was 10679, checked in by gania, 9 years ago

Diagrams in root

File size: 2.0 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="-2000,-1000,3000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
35   
36    <?lua
37      for i = 0, 5, 1 do
38    ?>
39    <StaticEntity position="0,-10000,0" direction="0,-1,0" >
40     <controller>
41        <FleetController team=1>
42        </FleetController>
43      </controller>
44    </StaticEntity>
45    <StaticEntity position="0,10000,0" direction="0,-1,0" >
46     <controller>
47        <FleetController team=2>
48        </FleetController>
49      </controller>
50    </StaticEntity>
51    <SpaceShip position="<?lua print(1600+i*200) ?>,<?lua print(3000-i*500) ?>, -1500 ?>" lookat="0,0,0">
52      <templates>
53        <Template link=spaceshipassff />
54      </templates>
55      <controller>
56        <AIController accuracy=10 team=1>
57        </AIController>
58      </controller>
59    </SpaceShip>
60    <?lua end ?>
61
62    <?lua
63      for i = 0, 5, 1 do
64    ?>
65    <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 6000 ?>" lookat="0,0,0">
66      <templates>
67        <Template link=spaceshipassff />
68      </templates>
69      <controller>
70        <AIController accuracy=10 team=2>
71        </AIController>
72      </controller>
73    </SpaceShip>
74    <?lua end ?>
75
76
77  </Scene>
78</Level>
79
Note: See TracBrowser for help on using the repository browser.