Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/presentationFS10.oxw @ 8916

Last change on this file since 8916 was 8916, checked in by baermatt, 13 years ago

Associated each screenshot to the correct level

  • Property svn:eol-style set to native
File size: 5.2 KB
Line 
1<LevelInfo
2 name = "Presentation XI"
3 description = "1st Presentation level for Orxonox Convention XI"
4 tags = "presentation"
5 screenshot = "presentationxi.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11?>
12
13<?lua
14  include("templates/lodInformation.oxt")
15  include("templates/spaceshipAssff.oxt")
16  include("templates/spaceshipPirate.oxt")
17  include("templates/spaceshipSwallow.oxt")
18  include("templates/pickupRepresentationTemplates.oxt")
19?>
20
21<Level
22 name         = "Sample"
23 description  = "Just a few tests"
24 gametype     = TeamDeathmatch
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
32    ambientlight = "0.8, 0.8, 0.8"
33    skybox       = "Orxonox/Starbox"
34  >
35
36    <?lua
37      include("includes/pickups.oxi")
38    ?>
39
40    <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" />
41    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
42
43    <Billboard position="12.5, -30, -500" material="Banners/Pickups" scale="0.5"/>
44    <Billboard position="500, -30, -500" material="Banners/Drone" scale="0.5"/>
45    <EventDispatcher>
46      <targets>
47        <EventTarget target=pirate />
48      </targets>
49      <events>
50        <activity>
51          <DistanceTrigger position="500, -50, -500" distance=20 target="SpaceShip" stayactive=true />
52        </activity>
53      </events>
54    </EventDispatcher>
55
56    <Billboard position="1000, -30, -500" material="Banners/Formation" scale="0.5"/>
57    <Billboard position="1000, -50, -500" material="Examples/Flare" scale="0.5"/>
58    <EventDispatcher>
59      <targets>
60        <EventTarget target=formation />
61      </targets>
62      <events>
63        <activity>
64          <DistanceTrigger position="1000, -50, -500" distance=20 target="SpaceShip" stayactive=true />
65        </activity>
66      </events>
67    </EventDispatcher>
68
69    <SpaceShip position="500,0,-1500">
70        <templates>
71          <Template link=spaceshippirate />
72        </templates>
73        <controller>
74          <AIController team=1 active=false name=pirate formationFlight=false passive=false />
75        </controller>
76    </SpaceShip>
77
78
79    <?lua
80      for i = 1, 10, 1 do
81        ?>
82      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
83        <templates>
84          <Template link=spaceshippirate />
85        </templates>
86        <controller>
87          <AIController formationFlight=true passive=true team=0 name=formation active=false />
88        </controller>
89      </SpaceShip>
90    <?lua end ?>
91
92
93    <?lua
94      for i = 1, 10, 1 do
95        ?>
96      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
97        <templates>
98          <Template link=spaceshipassff />
99        </templates>
100        <controller>
101          <AIController formationFlight=true passive=true team=1 name=formation active=false/>
102        </controller>
103      </SpaceShip>
104    <?lua end ?>
105
106    <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
107      <pickup>
108        <DronePickup template=dronepickup />
109      </pickup>
110    </PickupSpawner>
111
112    <!-- Shield pickups -->
113
114    <PickupSpawner position="-25,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
115      <pickup>
116        <ShieldPickup template=hugeshieldpickup />
117      </pickup>
118    </PickupSpawner>
119
120    <!-- Health pickups -->
121
122    <PickupSpawner position="0,-75,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
123      <pickup>
124        <HealthPickup template=hugehealthpickup />
125      </pickup>
126    </PickupSpawner>
127
128    <!-- Speed pickups -->
129
130    <PickupSpawner position="25,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
131      <pickup>
132        <SpeedPickup template=hugespeedpickup />
133      </pickup>
134    </PickupSpawner>
135
136    <PickupSpawner position="50,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
137      <pickup>
138        <SpeedPickup template=smalljumppickup />
139      </pickup>
140    </PickupSpawner>
141
142    <!-- Invisible pickups -->
143
144    <PickupSpawner position="0,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
145      <pickup>
146        <InvisiblePickup template=hugeinvisiblepickup />
147      </pickup>
148    </PickupSpawner>
149
150    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
151    <PickupRepresentation
152      pickupName = "Medium Health Pack"
153      pickupDescription = "Once used adds a medium amout of health to the ship."
154      spawnerTemplate = "mediumhealthpickupRepresentation"
155      inventoryRepresentation = "MediumHealth"
156    >
157      <pickup>
158        <HealthPickup health=50 activationType="onUse" durationType="once" />
159      </pickup>
160    </PickupRepresentation>
161
162    <PickupSpawner position="25,-75,-500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
163      <pickup>
164        <HealthPickup health=50 activationType=onUse durationType=once />
165      </pickup>
166    </PickupSpawner>
167
168  </Scene>
169</Level>
Note: See TracBrowser for help on using the repository browser.