Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8526 was 8512, checked in by smerkli, 14 years ago

changed presentation level a little

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/spaceshipPirate.oxt")
16?>
17
18<?lua
19include("templates/pickupRepresentationTemplates.oxt")
20?>
21
22<Level
23 name         = "Sample"
24 description  = "Just a few tests"
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29
30  <Scene
31    ambientlight = "0.8, 0.8, 0.8"
32    skybox       = "Orxonox/skyboxempty"
33  >
34
35    <?lua
36      include("includes/pickups.oxi")
37    ?>
38
39    <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"/>
40    <SpawnPoint team=0 position="0,0,0" lookat="2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
41
42
43    <!-- PICKUPS -->
44    <PickupSpawner position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
45      <pickup>
46        <DronePickup template=dronepickup />
47      </pickup>
48    </PickupSpawner>
49
50   
51    <!-- BOUNDARIES AND PORTALS -->
52   
53    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,0,0"/>
54
55    <Template name=PortalDefault>
56        <PortalEndPoint>
57            <attached>
58                <Billboard material="Portals/Default" />
59            </attached>
60        </PortalEndPoint>
61    </Template>
62
63    <PortalEndPoint position="350,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/>
64    <PortalEndPoint position="-90300,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>
65    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-90000,0,0"/>
66    <PortalEndPoint position="-350,0,0" id="3" distance="40" target="MobileEntity" design="PortalDefault"/>
67    <PortalEndPoint position="0,10300,0" id="4" distance="40" target="MobileEntity" design="PortalDefault"/>
68    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,10000,0"/>
69
70    <PortalLink fromID="1" toID="2" />
71    <PortalLink fromID="2" toID="1" />
72    <PortalLink fromID="3" toID="4" />
73    <PortalLink fromID="4" toID="3" />
74
75
76    <!-- MODELS, DEBRIS, ETC -->
77
78    <Planet
79      position="-5000,0,0"
80      scale="400"
81      collisionType="dynamic"
82      linearDamping="0.8"
83      angularDamping="0"
84      mass="10000000"
85      pitch="0"
86      mesh="planets/muunilinst.mesh"
87      atmosphere="atmosphere1"
88      rotationaxis="1,0,0"
89      rotationrate="1.0"
90      atmospheresize="300.0f"
91      imagesize="1024.0f"
92    >
93      <collisionShapes>
94        <SphereCollisionShape radius="400" position="0,0,0" />
95      </collisionShapes>
96    </Planet>
97
98    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
99    <Planet
100      position="70500,0,0"
101      scale="63000"
102      collisionType="dynamic"
103      linearDamping="0.8"
104      angularDamping="0"
105      mass="5.9e21"
106      pitch="0"
107      mesh="planets/earth.mesh"
108      atmosphere="atmosphere1"
109      rotationaxis="0,1,0"
110      rotationrate="0.2"
111      atmospheresize="80.0f"
112      imagesize="1024.0f"
113      collisiondamage = 2
114      enablecollisiondamage = true
115    >
116      <attached>
117        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
118      </attached>
119      <collisionShapes>
120        <SphereCollisionShape radius="63000" position="0,0,0" />
121      </collisionShapes>
122    </Planet>
123
124    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
125    <Planet
126      position="-30000,0,0"
127      scale="17370"
128      collisionType="dynamic"
129      linearDamping="0.8"
130      angularDamping="0"
131      mass="7.36e19"
132      pitch="0"
133      mesh="planets/moon.mesh"
134      atmosphere="atmosphere1"
135      rotationaxis="0,1,0"
136      rotationrate="0.2"
137      atmospheresize="80.0f"
138      imagesize="1024.0f"
139      collisiondamage = 2
140      enablecollisiondamage = true
141    >
142      <attached>
143        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
144      </attached>
145      <collisionShapes>
146        <SphereCollisionShape radius="17370" position="0,0,0" />
147      </collisionShapes>
148    </Planet>
149
150    <MovableEntity position="0,0,0">
151      <attached>
152        <Billboard position="-5000,0,0" material="Examples/Flare" colour="0, 0, 1" scale=10/>
153      </attached>
154    </MovableEntity>
155
156    <Destroyer
157      position          = "100,150,0"
158      collisionType     = dynamic
159      mass              = 100000
160      velocity          = "0,0,0"
161      angularDamping    = 0.9999999
162      health            = 10000
163      maxhealth         = 10000
164      initialhealth     = 10000
165    >
166
167      <attached>
168        <Model mesh="Carrier.mesh" scale="5" />
169        <Backlight
170          mainstate=activity
171          active=false
172          scale=0.4
173          name=bltest
174          position=" 7.6, 0, 6"
175          colour="0.2, 0.65, 1.0, 1.0"
176          width=15
177          length=1500
178          lifetime=2
179          elements=50
180          trailmaterial="Trail/backlighttrail"
181          turnontime=1
182          turnofftime=1
183          material="Flares/ThrusterFlare1"
184        />
185        <?lua for i=0,8,1 do ?>
186          <BlinkingBillboard
187            position="<?lua print(200-270/8*i)?> ,15,2"
188            material="Examples/Flare"
189            colour="1.0, 0.5, 0.3"
190            phase="<?lua print(-360/8*i)?>"
191            amplitude=0.1
192            frequency=0.5
193            quadratic=1
194          />
195
196          <BlinkingBillboard
197            position="<?lua print(200-270/8*i)?>,-15,2"
198            material="Examples/Flare"
199            colour="1.0, 0.5, 0.3"
200            phase="<?lua print(-360/8*i)?>"
201            amplitude=0.1
202            frequency=0.5
203            quadratic=1
204          />
205        <?lua end ?>
206
207        <Backlight
208          scale=1
209          position=" 169, 75, -15"
210          colour="1, 0.85, 0.5, 0.5"
211          width=40
212          length=1000
213          lifetime=5
214          elements=15
215          trailmaterial="Trail/backlighttrail"
216          material="Examples/Flare"
217        />
218        <Backlight
219          scale=1
220          position=" 169, -75, -15"
221          colour="1, 0.85, 0.5, 0.5"
222          width=40
223          length=1000
224          lifetime=5
225          elements=15
226          trailmaterial="Trail/backlighttrail"
227          material="Examples/Flare" />
228      </attached>
229      <collisionShapes>
230        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
231        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
232        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
233        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
234        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
235        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
236        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
237      </collisionShapes>
238    </Destroyer>
239
240   
241  </Scene>
242</Level>
243
Note: See TracBrowser for help on using the repository browser.