Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9009 was 9008, checked in by jo, 13 years ago

Working on the levels.

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 -->
41    <!-- Generate asteroid field and asteroid belt -->   
42    <?lua
43        dofile("includes/asteroidField.lua")
44        asteroidBelt(0, 0, 0, -48, -34, 70, 100, 200, 219900, 210000, 900, 1)
45    ?>
46
47
48
49
50    <!-- Belts around the planet -->
51    <?lua
52        dofile("includes/asteroidField.lua")
53        asteroidBelt(3000, 0, 0, -100, -134, 80, 10, 20, 2190, 1800, 100, 1)
54    ?>
55    <?lua
56        dofile("includes/asteroidField.lua")
57        asteroidBelt(3000, 0, 0, -190, -134, 80, 10, 20, 2190, 1800, 100, 1)
58    ?>
59    <?lua
60        dofile("includes/asteroidField.lua")
61        asteroidBelt(3000, 0, 0, -270, -134, 80, 10, 20, 2190, 1800, 100, 1)
62    ?>
63
64
65
66    <!-- Planet close to spawn point -->
67    <Planet
68      position="3000,0,0"
69      scale="1000"
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="1000" 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.