Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/environment3/data/levels/asteroidField.oxw @ 8946

Last change on this file since 8946 was 8946, checked in by fmauro, 12 years ago

asteroidBelt function added

File size: 1.1 KB
Line 
1<LevelInfo
2 name = "asteroidFieldTest"
3 description = "Test of the asteroidField generator."
4 tags = "asteroidField"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<?lua
14  include("templates/spaceshipAssff2.oxt")
15  include("templates/spaceshipPirate.oxt")
16?>
17
18<Level
19 name         = "Sample"
20 description  = "Just a few tests"
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27  <Scene
28    ambientlight = "0.8, 0.8, 0.8"
29    skybox       = "Orxonox/Starbox"
30    hasPhysics   = true
31  >
32
33    <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"/>
34    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
35
36    <!-- Generate asteroid field with diameter 12000 containing 250 asteroids -->   
37    <?lua
38        dofile("includes/asteroidField.lua")
39        asteroidField(0, 0, 5000, 100, 150, 2000, 50);
40        asteroidBelt(0, 0, 0, -48, -34, 30, 100, 200, 17000, 21000, 900)
41    ?>
42   
43  </Scene>
44</Level>
45
Note: See TracBrowser for help on using the repository browser.