Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8773 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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