Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai2/data/levels/earth.oxw @ 8740

Last change on this file since 8740 was 8706, checked in by dafrick, 14 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
1<LevelInfo
2 name = "Earth Demonstration"
3 description = "1:100 Scale Model of Earth with Gravity"
4 tags = "showcase"
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  <Template name=PortalDefault>
24      <PortalEndPoint>
25          <attached>
26              <Billboard material="Portals/Default" />
27          </attached>
28      </PortalEndPoint>
29  </Template>
30
31  <Scene
32    ambientlight = "0.8, 0.8, 0.8"
33    skybox       = "Orxonox/skyboxempty"
34  >
35    <WorldAmbientSound
36      source="Earth.ogg"
37      looping="true"
38      playOnLoad="true"
39    />
40
41    <Light
42      type="directional"
43      position="-500000,-500000,0"
44      direction="0.253, 0.593, -0.765"
45      diffuse="1.0, 0.9, 0.9, 1.0"
46      specular="1.0, 0.9, 0.9, 1.0"
47    />
48
49
50
51    <SpawnPoint
52      position="70000,0,0"
53      lookat="0,0,0"
54      spawnclass="SpaceShip"
55      pawndesign="spaceshipHXY"
56    />
57    <PortalEndPoint position="70500,100,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/>
58
59    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
60    <Planet
61      position="0,0,0"
62      scale="63000"
63      collisionType="dynamic"
64      linearDamping="0.8"
65      angularDamping="0"
66      mass="5.9e21"
67      pitch="0"
68      mesh="planets/earth.mesh"
69      atmosphere="atmosphere1"
70      rotationaxis="0,1,0"
71      rotationrate="0.2"
72      atmospheresize="80.0f"
73      imagesize="1024.0f"
74      collisiondamage = 2
75      enablecollisiondamage = true
76    >
77      <attached>
78        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
79      </attached>
80      <collisionShapes>
81        <SphereCollisionShape radius="63000" position="0,0,0" />
82      </collisionShapes>
83    </Planet>
84
85    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
86    <Planet
87      position="3625700,0,0"
88      scale="17370"
89      collisionType="dynamic"
90      linearDamping="0.8"
91      angularDamping="0"
92      mass="7.36e19"
93      pitch="0"
94      mesh="planets/moon.mesh"
95      atmosphere="atmosphere1"
96      rotationaxis="0,1,0"
97      rotationrate="0.2"
98      atmospheresize="80.0f"
99      imagesize="1024.0f"
100      collisiondamage = 2
101      enablecollisiondamage = true
102    >
103      <attached>
104        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
105      </attached>
106      <collisionShapes>
107        <SphereCollisionShape radius="17370" position="0,0,0" />
108      </collisionShapes>
109    </Planet>
110    <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>
111
112    <!-- Create portals from Earth to the Moon -->
113    <PortalLink fromID="1" toID="2" />
114    <PortalLink fromID="2" toID="1" />
115  </Scene>
116</Level>
Note: See TracBrowser for help on using the repository browser.