Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/environment/data/levels/test_swallow.oxw @ 8454

Last change on this file since 8454 was 8083, checked in by youngk, 14 years ago

Cocoa Integration of Orxonox and CPack testing. @Reto: Do NOT merge with kicklib, please.

  • 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/lodinformation.oxt")
5  include("templates/spaceship_swallow.oxt")
6  include("templates/spaceship_pirate.oxt")
7?>
8
9
10
11<Level
12 name         = "Presentation_swallow"
13 description  = "presentation level for Orxonox Convention X"
14
15>
16  <templates>
17   <Template link=lodtemplate_default />
18  </templates>
19
20  <Scene
21   ambientlight = "0.5, 0.5, 0.5"
22   skybox       = "Orxonox/skypanoramagen1"
23  >
24    <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" />
25
26
27<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=spaceshipswallow />
28
29
30<?lua
31max = 20
32for i = 1, max, 1
33do
34    x = math.sin(i/max*6)*40000
35    y = math.cos(i/max*6)*40000
36    z = i*100
37    ?>
38<?lua
39for k = 1, 25, 1
40do
41j = math.random()
42?>
43
44    <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) ?>">
45      <attached>
46        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
47      </attached>
48      <?lua if i == 5 then ?><collisionShapes>
49        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
50      </collisionShapes> <?lua end ?>
51    </MovableEntity>
52<?lua
53end
54?>
55<?lua end ?>
56    <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 />
57
58  </Scene>
59</Level>
Note: See TracBrowser for help on using the repository browser.