Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2011/data/levels/asteroidField.oxw @ 9014

Last change on this file since 9014 was 9014, checked in by smerkli, 12 years ago

Scaled up the collision shape for the planet in asteroidFieldTest to match the size of the planet

File size: 2.3 KB
Line 
1<LevelInfo
2 name = "asteroidFieldTest"
3 description = "Test of the asteroidField generator."
4  screenshot = "asteroidFieldTest.png"
5 tags = "test, showcase"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
15  include("templates/spaceshipAssff.oxt")
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"
31    hasPhysics   = true
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"/>
35    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
36
37
38
39
40    <!-- Belt that's far away  *** TURNED OFF FOR PERFORMANCE REASONS *** -->
41    <!-- Generate asteroid field and asteroid belt -->   
42    <!--
43    <?lua
44        dofile("includes/asteroidField.lua")
45        asteroidBelt(0, 0, 0, -48, -34, 70, 100, 200, 219900, 210000, 900, 1)
46    ?>
47    -->
48
49
50    <!-- triple large belt around the planet  -->
51    <?lua
52        dofile("includes/asteroidField.lua")
53        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
54    ?>
55    <?lua
56        dofile("includes/asteroidField.lua")
57        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
58    ?>
59    <?lua
60        dofile("includes/asteroidField.lua")
61        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
62    ?>
63
64
65
66    <!-- Planet close to spawn point -->
67    <Planet
68      position="15000,0,0"
69      scale="5000"
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>
88        <SphereCollisionShape radius="5000" position="0,0,0" />
89      </collisionShapes>
90    </Planet>
91
92
93
94
95
96
97   
98  </Scene>
99</Level>
100
Note: See TracBrowser for help on using the repository browser.