Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/earth.oxw @ 8931

Last change on this file since 8931 was 8916, checked in by baermatt, 14 years ago

Associated each screenshot to the correct level

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