Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

created destructor functions and improved findNewLeader and findNewDivisionLeader

File size: 3.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="1000,1000,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
35    <!-->
36
37    <?lua
38      for i = 0, 5, 1 do
39    ?>
40
41    <StaticEntity position="0,-10000,0" direction="0,-1,0" >
42     <controller>
43        <FleetController team=1>
44        </FleetController>
45      </controller>
46    </StaticEntity>
47    <StaticEntity position="0,10000,0" direction="0,-1,0" >
48     <controller>
49        <FleetController team=2>
50        </FleetController>
51      </controller>
52    </StaticEntity>
53    <SpaceShip position="<?lua print(1600+i*200) ?>,<?lua print(3000-i*500) ?>, -1500 ?>" lookat="0,0,0">
54      <templates>
55        <Template link=spaceshipassff />
56      </templates>
57      <controller>
58        <AIController accuracy=10 team=1>
59        </AIController>
60      </controller>
61    </SpaceShip>
62    <?lua end ?>
63  </!-->
64   
65    <StaticEntity position = "-1000, -1000, -1000">
66 
67      <controller>
68        <FleetController accuracy=10 team=1 >
69        </FleetController>
70      </controller>
71    </StaticEntity>
72   
73   
74    <SpaceShip position="1000, 1000, -1300 ?>" lookat="0,0,0">
75      <templates>
76        <Template link=spaceshipassff />
77      </templates>
78      <controller>
79        <SectionController team=1>
80        </SectionController>
81      </controller>
82    </SpaceShip>
83    <SpaceShip position="1000, 1000, -1600 ?>" lookat="0,0,0">
84      <templates>
85        <Template link=spaceshipassff />
86      </templates>
87      <controller>
88        <WingmanController team=1>
89        </WingmanController>
90      </controller>
91    </SpaceShip>
92    <SpaceShip position="1000, 1000, -1900 ?>" lookat="0,0,0">
93      <templates>
94        <Template link=spaceshipassff />
95      </templates>
96      <controller>
97        <SectionController team=1>
98        </SectionController>
99      </controller>
100    </SpaceShip>
101
102   
103    <!-->
104    <?lua
105      for i = 0, 5, 1 do
106    ?>
107    <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 6000 ?>" lookat="0,0,0">
108      <templates>
109        <Template link=spaceshipassff />
110      </templates>
111      <controller>
112        <AIController accuracy=10 team=2>
113        </AIController>
114      </controller>
115    </SpaceShip>
116    <?lua end ?>
117    </!-->
118
119  </Scene>
120</Level>
121
Note: See TracBrowser for help on using the repository browser.