Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/earth.oxw @ 8723

Last change on this file since 8723 was 8706, checked in by dafrick, 13 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
RevLine 
[8398]1<LevelInfo
2 name = "Earth Demonstration"
3 description = "1:100 Scale Model of Earth with Gravity"
[8498]4 tags = "showcase"
[8398]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>
[8706]21  <?lua include("includes/notifications.oxi") ?>
[8398]22
[8472]23  <Template name=PortalDefault>
24      <PortalEndPoint>
25          <attached>
26              <Billboard material="Portals/Default" />
27          </attached>
28      </PortalEndPoint>
29  </Template>
30
[8398]31  <Scene
32    ambientlight = "0.8, 0.8, 0.8"
[8438]33    skybox       = "Orxonox/skyboxempty"
[8398]34  >
[8438]35    <WorldAmbientSound
36      source="Earth.ogg"
37      looping="true"
38      playOnLoad="true"
39    />
40
[8398]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
[8472]49
50
[8398]51    <SpawnPoint
52      position="70000,0,0"
53      lookat="0,0,0"
54      spawnclass="SpaceShip"
55      pawndesign="spaceshipHXY"
56    />
[8472]57    <PortalEndPoint position="70500,100,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/>
[8398]58
[8438]59    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
[8398]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"
[8438]68      mesh="planets/earth.mesh"
[8398]69      atmosphere="atmosphere1"
70      rotationaxis="0,1,0"
71      rotationrate="0.2"
[8496]72      atmospheresize="80.0f"
[8398]73      imagesize="1024.0f"
[8496]74      collisiondamage = 2
75      enablecollisiondamage = true
[8398]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>
[8438]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"
[8496]98      atmospheresize="80.0f"
[8438]99      imagesize="1024.0f"
[8496]100      collisiondamage = 2
101      enablecollisiondamage = true
[8438]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>
[8472]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" />
[8496]114    <PortalLink fromID="2" toID="1" />
[8398]115  </Scene>
116</Level>
Note: See TracBrowser for help on using the repository browser.