Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11456 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • 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"
[9016]5 screenshot = "presentationx3rd.png"
[7648]6/>
7
[5561]8<?lua
[7679]9  include("HUDTemplates3.oxo")
[5654]10  include("stats.oxo")
[7679]11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipH2.oxt")
13  include("templates/lodInformation.oxt")
[5561]14?>
15
[9016]16<Level>
[7163]17  <templates>
18    <Template link=lodtemplate_default />
19  </templates>
[8706]20  <?lua include("includes/notifications.oxi") ?>
[7163]21
[5561]22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
[9348]24   skybox       = "Orxonox/skyBoxBasic"
[5561]25  >
[7163]26 
[5561]27    <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" />
28
29
[7163]30    <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]31
[5565]32
[7163]33    <?lua
34      max = 20
35      for i = 1, max, 1
36      do
37        x = math.sin(i/max*6)*40000
38        y = math.cos(i/max*6)*40000
39        z = i*100
[5561]40    ?>
[7163]41      <?lua
42        for k = 1, 25, 1
43        do
44        j = math.random()
45      ?>
[6417]46
[8079]47      <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]48        <attached>
[8079]49          <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[7163]50        </attached>
51        <?lua if i == 5 then ?><collisionShapes>
52          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
53        </collisionShapes> <?lua end ?>
54      </MovableEntity>
55   
56      <?lua end ?>
57    <?lua end ?>
58   
[5565]59    <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]60
[5561]61  </Scene>
62</Level>
Note: See TracBrowser for help on using the repository browser.