Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/asteroidField.oxw @ 9342

Last change on this file since 9342 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

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