Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/presentationFS11.oxw @ 8637

Last change on this file since 8637 was 8637, checked in by dafrick, 13 years ago

Merging tutoriallevel3 branch into presentation branch.

File size: 7.1 KB
Line 
1<LevelInfo
2 name = "Presentation FS11"
3 description = "Presentation level spring semester '11"
4 tags = "test"
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/spaceshipAssff2.oxt")
16  include("templates/spaceshipPirate.oxt")
17?>
18
19<?lua
20include("templates/pickupRepresentationTemplates.oxt")
21?>
22
23<Level
24 name         = "Sample"
25 description  = "Just a few tests"
26>
27  <templates>
28    <Template link=lodtemplate_default />
29  </templates>
30  <?lua include("includes/notifications.oxi") ?>
31
32  <NotificationQueueCEGUI
33    name="narrative"
34    targets="narrative"
35    size=1
36    displayTime=30
37    position="0.2, 0, 0.8, 0"
38    fontSize="24"
39    fontColor="1, 1, 0, 0.8"
40    alignment="HorzCentred"
41    displaySize="0.6, 0, 0, 0"
42    />
43
44  <Scene
45    ambientlight = "0.8, 0.8, 0.8"
46    skybox       = "Orxonox/skyboxempty"
47  >
48
49    <?lua
50      include("includes/pickups.oxi")
51    ?>
52
53    <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"/>
54
55    <SimpleNotification message="Welcome to Earth Orbit" >
56        <events>
57            <trigger>
58                <EventListener event=spawntrigger />
59            </trigger>
60        </events>
61    </SimpleNotification>
62    <EventMultiTrigger name=spawntrigger>
63        <events>
64            <trigger>
65                <SpawnPoint position="0,0,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
66            </trigger>
67        </events>
68    </EventMultiTrigger>
69
70<!-- PICKUPS -->
71    <PickupSpawner position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
72      <pickup>
73        <DronePickup template=dronepickup />
74      </pickup>
75    </PickupSpawner>
76
77    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp" lifetime=500 loop=1 startdelay=2.5 />
78    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp2" lifetime=500 loop=1 startdelay=2 />
79    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp3" lifetime=500 loop=1 startdelay=2 />
80
81   
82    <!-- BOUNDARIES AND PORTALS -->
83
84    <Template name=PortalDefault>
85        <PortalEndPoint>
86            <attached>
87                <Billboard material="Portals/Default" />
88            </attached>
89        </PortalEndPoint>
90    </Template>
91
92    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-90000,0,0"/>
93    <PortalEndPoint position="-350,0,0" id="3" distance="40" target="MobileEntity" design="PortalDefault"/>
94    <PortalEndPoint position="-72000,0,0" id="4" distance="40" target="MobileEntity" design="PortalDefault"/>
95    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,10000,0"/>
96
97    <SpaceBoundaries warnDistance="1" maxDistance="450" showDistance="300" healthDecrease="0.1" position="0,0,0"/>
98    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-30000,0,0"/>
99
100    <PortalLink fromID="3" toID="4" />
101    <PortalLink fromID="4" toID="3" />
102
103    <!-- MODELS, DEBRIS, ETC -->
104
105    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
106    <Planet
107      position="80500,0,0"
108      scale="63000"
109      collisionType="dynamic"
110      linearDamping="0.8"
111      angularDamping="0"
112      mass="5.9e21"
113      pitch="-90"
114      yaw="50"
115      mesh="planets/earth.mesh"
116      atmosphere="atmosphere1"
117      rotationaxis="0,1,0"
118      rotationrate="0.2"
119      atmospheresize="80.0f"
120      imagesize="1024.0f"
121      collisiondamage = 2
122      enablecollisiondamage = true
123    >
124      <attached>
125        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
126      </attached>
127      <collisionShapes>
128        <SphereCollisionShape radius="63000" position="0,0,0" />
129      </collisionShapes>
130    </Planet>
131
132    <!-- MOON AREA -->
133
134    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
135    <Planet
136      position="-80000,0,0"
137      scale="4000"
138      collisionType="dynamic"
139      linearDamping="0.8"
140      angularDamping="0"
141      mass="7.36e19"
142      pitch="0"
143      mesh="planets/moon.mesh"
144      atmosphere="atmosphere1"
145      rotationaxis="0,1,0"
146      rotationrate="0.2"
147      atmospheresize="0.0f"
148      imagesize="1024.0f"
149      collisiondamage = 2
150      enablecollisiondamage = true
151    >
152      <attached>
153        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
154      </attached>
155      <collisionShapes>
156        <SphereCollisionShape radius="4000" position="0,0,0" />
157      </collisionShapes>
158    </Planet>
159
160    <!-- Hydrogen farmer -->
161    <SpaceShip position="-74000,2500,0" roll=90 yaw=180 pitch=20 mass=10000 >
162      <attached>
163        <!-- Docking -->
164        <DistanceTriggerBeacon name="bcnDestroyer" />
165        <DockingTarget name="destroyer" />
166
167        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=100 />
168        <!-- <Model mesh="cube.mesh" mass=10 position="-1120,0,0" scale3D="230,200,490"  /> -->
169        <!-- <Model mesh="cube.mesh" mass=10 position="580,0,-960" scale3D="230,200,490" yaw=-120 /> -->
170        <!-- <Model mesh="cube.mesh" mass=10 position="580,0,960" scale3D="230,200,490" yaw=-240 /> -->
171        <!-- <Model mesh="cube.mesh" mass=10 position="0,0,0" scale3D="600,200,100" /> -->
172      </attached>
173      <collisionShapes>
174        <BoxCollisionShape  position="-1120,0,0" halfExtents="230,200,490" />
175        <BoxCollisionShape  position="580,0,-960" halfExtents="230,200,490" yaw=-120 />
176        <BoxCollisionShape  position="580,0,960" halfExtents="230,200,490" yaw=-240 />
177      </collisionShapes>
178    </SpaceShip>
179
180    <Dock position="-73942, 1288, -255" roll=90 yaw=180 >
181        <animations>
182            <MoveToDockingTarget target="destroyer" />
183        </animations>
184        <effects>
185            <DockToShip target="spaceShip" />
186        </effects>
187        <events>
188            <execute>
189                <EventListener event="dockMe" />
190            </execute>
191        </events>
192        <attached>
193            <DistanceTrigger position="10,-202, -42" distance="400" target="Pawn"
194                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
195            />
196            <Billboard position="10,-202,-42" material="Examples/Flare" colour="1.0, 0, 0" />
197        </attached>
198    </Dock>
199
200    <SpaceShip template="spaceshipassff2" position="-73915,3786,67" orientation="-0.14045, 0.68254, 0.68144, 0.223774" >
201      <attached>
202        <DockingTarget name="spaceShip" />
203      </attached>
204    </SpaceShip>
205
206
207    <PickupSpawner position="-25,-50,-125" respawnTime="10" triggerDistance="20" maxSpawnedItems="5">
208      <pickup>
209        <ShrinkPickup template ="smallshrinkpickup"/>
210      </pickup>
211    </PickupSpawner>
212
213    <PickupSpawner position="25,50,-125" respawnTime="10" triggerDistance="20" maxSpawnedItems="5">
214      <pickup>
215        <ShrinkPickup template ="smallshrinkpickup"/>
216      </pickup>
217    </PickupSpawner>
218  </Scene>
219</Level>
220
Note: See TracBrowser for help on using the repository browser.