Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/test_ghost.oxw @ 7007

Last change on this file since 7007 was 7007, checked in by dafrick, 14 years ago

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_ghost.oxt")
5  include("templates/spaceship_pirate.oxt")
6?>
7
8<Level
9 name         = "Presentation09"
10 description  = "presentation level for Orxonox Convention X"
11
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/skypanoramagen1"
16  >
17
18    <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" />
19
20    <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipghost />
21
22    <?lua
23      max = 20
24      for i = 1, max, 1 do
25        x = math.sin(i/max*6)*40000
26        y = math.cos(i/max*6)*40000
27        z = i*100
28        for k = 1, 25, 1 do
29          j = math.random()
30    ?>
31      <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
32        <attached>
33          <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
34        </attached>
35        <?lua if i == 5 then ?><collisionShapes>
36          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
37        </collisionShapes> <?lua end ?>
38      </MovableEntity>
39    <?lua
40        end
41      end
42    ?>
43   
44    <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
45
46  </Scene>
47</Level>
Note: See TracBrowser for help on using the repository browser.