Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cegui0.8_ogre1.9/data/levels/asteroidField.oxw @ 12106

Last change on this file since 12106 was 11795, checked in by landauf, 7 years ago

merged ogre1.9 (including cegui0.8) into new branch

  • Property svn:eol-style set to native
File size: 2.5 KB
RevLine 
[8889]1<LevelInfo
2 name = "asteroidFieldTest"
3 description = "Test of the asteroidField generator."
[8981]4  screenshot = "asteroidFieldTest.png"
[9006]5 tags = "test, showcase"
[8889]6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
[9939]13<WorldAmbientSound source="Asteroid_rocks.ogg" looping="true" playOnLoad="true" />
[8889]14
15<?lua
[9008]16  include("templates/spaceshipAssff.oxt")
[8889]17  include("templates/spaceshipPirate.oxt")
18?>
19
20<Level
21 name         = "Sample"
22 description  = "Just a few tests"
23>
24  <templates>
25    <Template link=lodtemplate_default />
26  </templates>
27  <?lua include("includes/notifications.oxi") ?>
28
29  <Scene
30    ambientlight = "0.8, 0.8, 0.8"
31    skybox       = "Orxonox/Starbox"
[8917]32    hasPhysics   = true
[8889]33  >
34
35    <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"/>
[9008]36    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
[8917]37
[9007]38
39
40
[9011]41    <!-- Belt that's far away  *** TURNED OFF FOR PERFORMANCE REASONS *** -->
[9348]42    <!-- Generate asteroid field and asteroid belt -->
[9011]43    <!--
[8889]44    <?lua
[9348]45        dofile("includes/asteroidField.lua")
46        asteroidBelt(0, 0, 0, -48, -34, 70, 100, 200, 219900, 210000, 900, 1)
[8889]47    ?>
[9011]48    -->
[9007]49
50
[9011]51    <!-- triple large belt around the planet  -->
[9007]52    <?lua
[9348]53        dofile("includes/asteroidField.lua")
54        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
[9007]55    ?>
56    <?lua
[9348]57        dofile("includes/asteroidField.lua")
58        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
[9007]59    ?>
60    <?lua
[9348]61        dofile("includes/asteroidField.lua")
62        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
[9007]63    ?>
64
65
66
67    <!-- Planet close to spawn point -->
[11795]68    <MovableEntity
[9011]69      position="15000,0,0"
70      scale="5000"
[9007]71      collisionType="dynamic"
72      linearDamping="0.8"
73      angularDamping="0"
74      mass="10000000"
75      pitch="0"
76      rotationaxis="1,0,0"
77      rotationrate="1.0"
78      collisiondamage = 2
79      enablecollisiondamage = true
80    >
81      <attached>
[11795]82        <Planet
83          mesh="planets/muunilinst.mesh"
84          atmosphere="atmosphere1"
85          atmospheresize="80.0f"
86          imagesize="1024.0f"
87        >
88          <attached>
89            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
90          </attached>
91        </Planet>
[9007]92      </attached>
93      <collisionShapes>
[9014]94        <SphereCollisionShape radius="5000" position="0,0,0" />
[9007]95      </collisionShapes>
[11795]96    </MovableEntity>
[9007]97
98
99
100
101
102
[9348]103
[8889]104  </Scene>
105</Level>
106
Note: See TracBrowser for help on using the repository browser.