Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel3/data/levels/earth.oxw @ 8636

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

Making NotificationQueue XML-loadable. Adding notifications to all levels.

File size: 2.5 KB
Line 
1<LevelInfo
2 name = "Earth Demonstration"
3 description = "1:100 Scale Model of Earth with Gravity"
4 tags = "earth, gravity"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11  include("templates/spaceshipHXY.oxt")
12?>
13
14<Level
15 name         = "Planet Earth"
16 description  = "1:100 Scale Model of Earth with Gravity"
17>
18  <templates>
19    <Template link="lodtemplate_default" />
20  </templates>
21  <?lua include("includes/notifications.oxi") ?>
22
23  <Scene
24    ambientlight = "0.8, 0.8, 0.8"
25    skybox       = "Orxonox/skyboxempty"
26  >
27    <WorldAmbientSound
28      source="Earth.ogg"
29      looping="true"
30      playOnLoad="true"
31    />
32
33    <Light
34      type="directional"
35      position="-500000,-500000,0"
36      direction="0.253, 0.593, -0.765"
37      diffuse="1.0, 0.9, 0.9, 1.0"
38      specular="1.0, 0.9, 0.9, 1.0"
39    />
40
41    <SpawnPoint
42      position="70000,0,0"
43      lookat="0,0,0"
44      spawnclass="SpaceShip"
45      pawndesign="spaceshipHXY"
46    />
47
48    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
49    <Planet
50      position="0,0,0"
51      scale="63000"
52      collisionType="dynamic"
53      linearDamping="0.8"
54      angularDamping="0"
55      mass="5.9e21"
56      pitch="0"
57      mesh="planets/earth.mesh"
58      atmosphere="atmosphere1"
59      rotationaxis="0,1,0"
60      rotationrate="0.2"
61      atmospheresize="300.0f"
62      imagesize="1024.0f"
63    >
64      <attached>
65        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
66      </attached>
67      <collisionShapes>
68        <SphereCollisionShape radius="63000" position="0,0,0" />
69      </collisionShapes>
70    </Planet>
71
72    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
73    <Planet
74      position="3625700,0,0"
75      scale="17370"
76      collisionType="dynamic"
77      linearDamping="0.8"
78      angularDamping="0"
79      mass="7.36e19"
80      pitch="0"
81      mesh="planets/moon.mesh"
82      atmosphere="atmosphere1"
83      rotationaxis="0,1,0"
84      rotationrate="0.2"
85      atmospheresize="300.0f"
86      imagesize="1024.0f"
87    >
88      <attached>
89        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
90      </attached>
91      <collisionShapes>
92        <SphereCollisionShape radius="17370" position="0,0,0" />
93      </collisionShapes>
94    </Planet>
95  </Scene>
96</Level>
Note: See TracBrowser for help on using the repository browser.