Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cegui0.8_ogre1.9/data/levels/waypoints.oxw @ 12148

Last change on this file since 12148 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 5.3 KB
Line 
1<LevelInfo
2 name = "Waypoints Testlevel"
3 description = "Testing waypoings for AI controlled spaceships."
4 tags = "test"
5 screenshot = "waypointstestlevel.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipH2.oxt")
13  include("templates/spaceshipPirate.oxt")
14  include("templates/lodInformation.oxt")
15?>
16
17<Level>
18  <templates>
19    <Template link=lodtemplate_default />
20  </templates>
21  <?lua include("includes/notifications.oxi") ?>
22
23  <Scene
24   ambientlight = "0.5, 0.5, 0.5"
25   skybox       = "Orxonox/skyBoxBasic"
26  >
27    <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" />
28
29    <SpawnPoint position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
30
31    <SpaceShip position="0,2000,200" lookat="0,0,0">
32      <templates>
33        <Template link=spaceshipassff />
34      </templates>
35      <controller>
36        <WaypointPatrolController alertnessradius=1000 team=10>
37          <waypoints>
38            <Model mesh="cube.mesh" scale=8 position="  0,2000,-200" />
39            <Model mesh="cube.mesh" scale=8 position="  0,2000,-700" />
40            <Model mesh="cube.mesh" scale=8 position="500,2000,-700" />
41            <Model mesh="cube.mesh" scale=8 position="500,2000,-200" />
42          </waypoints>
43        </WaypointPatrolController>
44      </controller>
45    </SpaceShip>
46    <SpaceShip position="0,2000,400" lookat="0,0,0">
47      <templates>
48        <Template link=spaceshipassff />
49      </templates>
50      <controller>
51        <WaypointPatrolController alertnessradius=1000 team=10>
52          <waypoints>
53            <Model mesh="cube.mesh" scale=8 position="  0,2000,-200" />
54            <Model mesh="cube.mesh" scale=8 position="  0,2000,-700" />
55            <Model mesh="cube.mesh" scale=8 position="500,2000,-700" />
56            <Model mesh="cube.mesh" scale=8 position="500,2000,-200" />
57          </waypoints>
58        </WaypointPatrolController>
59      </controller>
60    </SpaceShip>
61
62    <SpaceShip position="1500,2000,200" lookat="0,0,0">
63      <templates>
64        <Template link=spaceshipassff />
65      </templates>
66      <controller>
67        <WaypointPatrolController alertnessradius=1000 team=11>
68          <waypoints>
69            <Model mesh="cube.mesh" scale=8 position="1500,2000,-200" />
70            <Model mesh="cube.mesh" scale=8 position="1500,2000,-700" />
71            <Model mesh="cube.mesh" scale=8 position="1000,2000,-700" />
72            <Model mesh="cube.mesh" scale=8 position="1000,2000,-200" />
73          </waypoints>
74        </WaypointPatrolController>
75      </controller>
76    </SpaceShip>
77
78    <SpaceShip position="1500,-2000,200" lookat="0,0,0" name=polonaise1>
79      <templates>
80        <Template link=spaceshipassff />
81      </templates>
82      <controller>
83        <WaypointPatrolController alertnessradius=1000 team=12>
84          <waypoints>
85            <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" />
86<!--
87            <Attacher target=polonaise6 deletewithparent=false />
88            <Model mesh="cube.mesh" scale=8 position="1500,-2000,-700" />
89            <Model mesh="cube.mesh" scale=8 position="1000,-2000,-700" />
90            <Model mesh="cube.mesh" scale=8 position="1000,-2000,-200" />
91-->
92          </waypoints>
93        </WaypointPatrolController>
94      </controller>
95    </SpaceShip>
96
97    <?lua
98      for i = 1, 5, 1 do
99    ?>
100      <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> >
101        <templates>
102          <Template link=spaceshipassff />
103        </templates>
104        <controller>
105          <WaypointPatrolController alertnessradius=1000 team=12>
106            <waypoints>
107              <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false />
108            </waypoints>
109          </WaypointPatrolController>
110        </controller>
111      </SpaceShip>
112    <?lua end ?>
113
114    <SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1>
115      <templates>
116        <Template link=spaceshipassff />
117      </templates>
118      <controller>
119        <WaypointPatrolController alertnessradius=1000 team=13>
120          <waypoints>
121            <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" />
122          </waypoints>
123        </WaypointPatrolController>
124      </controller>
125    </SpaceShip>
126
127    <?lua
128      for i = 1, 5, 1 do
129    ?>
130      <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> >
131        <templates>
132          <Template link=spaceshipassff />
133        </templates>
134        <controller>
135          <WaypointPatrolController alertnessradius=1000 team=13>
136            <waypoints>
137              <Attacher target=attack<?lua print(i) ?> deletewithparent=false />
138            </waypoints>
139          </WaypointPatrolController>
140        </controller>
141      </SpaceShip>
142    <?lua end ?>
143
144<!--
145    <?lua
146      for i = 1, 50, 1 do
147    ?>
148      <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" >
149        <templates>
150          <Template link=spaceshipassff />
151        </templates>
152        <controller>
153          <AIController />
154        </controller>
155      </SpaceShip>
156    <?lua end ?>
157-->
158
159  </Scene>
160</Level>
Note: See TracBrowser for help on using the repository browser.