Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial2/data/levels/presentationHS11.oxw @ 10397

Last change on this file since 10397 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

File size: 4.1 KB
Line 
1<LevelInfo
2 name = "Presentation HS 2011"
3 description = "Oxonox Proudly Presents New Features From HS 2011"
4 tags = "presentation"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<?lua
14  include("templates/spaceshipAssff.oxt")
15  include("templates/spaceshipPirate.oxt")
16  include("templates/spaceshipSwallow.oxt")
17  include("templates/spaceshipTransporter.oxt")
18?>
19
20<Level
21 gametype = "Mission"
22>                      <!--ALTERNATIVE: TeamGametype-->
23  <templates>
24    <Template link=lodtemplate_default />
25  </templates>
26  <?lua include("includes/notifications.oxi") ?>
27
28  <NotificationQueueCEGUI
29    name="narrative"
30    targets="simpleNotification"
31    size=3
32    displayTime=3.9
33    position="0.2, 0, 0.1, 0"
34    fontSize="23"
35    fontColor="0.3, 1, 0.2, 0.8"
36    alignment="HorzCentred"
37    displaySize="0.6, 0, 0, 0"
38    />
39
40  <Scene
41    ambientlight = "0.8, 0.8, 0.8"
42    skybox       = "Orxonox/skyBoxMoreNebula"
43  >
44
45  <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"/>
46
47  <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/>
48
49  <!-- TRIGGERS -->
50    <DistanceTrigger name="FormationInit" position="800,700,600"  target="Pawn" distance=60 stayActive="true" delay=0.1 />
51    <DistanceTrigger name="LetsGo"        position="200,-200,1000" target="Pawn" distance=180 stayActive="true" delay=0.1 />
52      <BlinkingBillboard colour="1,1,0.05"position="200,-200,1000" frequency=0.6 amplitude=3 material="Flares/lensflare" >
53      </BlinkingBillboard>
54
55
56
57
58    <Script code="formationcontroller formationflight true" onLoad="false">
59        <events>
60            <trigger>
61                <EventListener event=FormationInit />
62            </trigger>
63        </events>
64    </Script> <!-- !!! activates formation behaviour !!! -->
65
66    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
67        <events>
68            <trigger>
69                <EventListener event=FormationInit />
70            </trigger>
71        </events>
72    </Script> <!-- make bots "friendly", doesn't work yet :-( -->
73
74    <SimpleNotification message="Let's go!">
75        <events>
76            <trigger>
77                <EventListener event="LetsGo" />
78            </trigger>
79        </events>
80    </SimpleNotification>
81
82
83<!-- ADDING FORMATION: 5 Swallows -->
84<?lua for i=0,4,1 do
85?>
86    <SpaceShip position="<?lua print(400+i*200) ?>,-200,1000" lookat="-1300,-600,900" visible="true">
87        <!--events>
88            <visibility>
89                <EventListener event="ondock" />
90            </visibility>
91        </events-->
92        <templates>
93            <Template link=spaceshipswallow /> <!--spaceshipTransporter spaceshippirate-->
94        </templates>
95        <controller>
96            <AIController team=0>
97                <events>
98                    <activity>
99                        <EventListener event="LetsGo" />
100                     </activity>
101                </events>
102            </AIController>
103        </controller>
104    </SpaceShip>
105<?lua end ?>
106
107<?lua for i=0,2,1 do
108?>
109
110
111<!-- ENEMY TRANSPORTER -->
112    <SpaceShip position="<?lua print(-400+i*200) ?>,3000,-2000" lookat="-1300,-600,900" visible="true">
113        <!--events>
114            <visibility>
115                <EventListener event="LetsGo" />
116            </visibility>
117        </events-->
118        <templates>
119            <Template link=spaceshipTransporter />
120        </templates>
121        <controller>
122            <AIController team=1>
123                <events>
124                    <activity>
125                        <EventListener event="LetsGo" />
126                     </activity>
127                </events>
128            </AIController>
129        </controller>
130    </SpaceShip>
131<?lua end ?>
132
133
134
135
136
137
138
139<!-- Generate asteroid field and asteroid belt -->
140<!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) -->
141    <?lua
142        dofile("includes/asteroidField.lua")
143        asteroidBelt(20000, 0, 13000, -48, -34, 70, 100, 200, 22000, 20000, 500, 1)
144
145    ?>
146
147
148
149
150  </Scene>
151</Level>
152
Note: See TracBrowser for help on using the repository browser.