Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentation09.oxw @ 7674

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

Merged releasetodo, containing a new way to describe and tag levels, back to trunk.

  • Property svn:eol-style set to native
File size: 2.2 KB
RevLine 
[7648]1<LevelInfo
2 name = "Presentation X"
3 description = "1st Presentation level for Orxonox Convention X"
4 tags = "presentation"
5/>
6
[5561]7<?lua
[5654]8  include("hudtemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceship_assff.oxt")
11  include("templates/spaceship_H2.oxt")
[7163]12  include("templates/lodinformation.oxt")
[5561]13?>
14
15<Level
16 name         = "Presentation09"
17 description  = "presentation level for Orxonox Convention X"
18
19>
[7163]20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23
[5561]24  <Scene
25   ambientlight = "0.5, 0.5, 0.5"
26   skybox       = "Orxonox/skypanoramagen1"
27  >
[7163]28 
[5561]29    <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" />
30
31
[7163]32    <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=spaceshipassff />
[5561]33
[5565]34
[7163]35    <?lua
36      max = 20
37      for i = 1, max, 1
38      do
39        x = math.sin(i/max*6)*40000
40        y = math.cos(i/max*6)*40000
41        z = i*100
[5561]42    ?>
[7163]43      <?lua
44        for k = 1, 25, 1
45        do
46        j = math.random()
47      ?>
[6417]48
[7163]49      <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) ?>">
50        <attached>
51          <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
52        </attached>
53        <?lua if i == 5 then ?><collisionShapes>
54          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
55        </collisionShapes> <?lua end ?>
56      </MovableEntity>
57   
58      <?lua end ?>
59    <?lua end ?>
60   
[5565]61    <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 />
[6417]62
[5561]63  </Scene>
64</Level>
Note: See TracBrowser for help on using the repository browser.