Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/testSwallow.oxw @ 8938

Last change on this file since 8938 was 8916, checked in by baermatt, 13 years ago

Associated each screenshot to the correct level

  • Property svn:eol-style set to native
File size: 2.1 KB
RevLine 
[7648]1<LevelInfo
2 name = "Swallow Testlevel"
3 description = "Level to test the swallow spaceship."
4 tags = "test"
[8916]5 screenshot = "swallowtestlevel.png"
[7648]6/>
7
[6929]8<?lua
[7679]9  include("HUDTemplates3.oxo")
[6929]10  include("stats.oxo")
[7679]11  include("templates/spaceshipSwallow.oxt")
12  include("templates/spaceshipPirate.oxt")
13  include("templates/lodInformation.oxt")
[6929]14?>
15
16<Level
17 name         = "Presentation_swallow"
18 description  = "presentation level for Orxonox Convention X"
19
20>
[7655]21
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
[8706]25  <?lua include("includes/notifications.oxi") ?>
[7655]26
[6929]27  <Scene
28   ambientlight = "0.5, 0.5, 0.5"
29   skybox       = "Orxonox/skypanoramagen1"
30  >
31    <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" />
32
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=spaceshipswallow />
34
35
36<?lua
37max = 20
38for i = 1, max, 1
39do
40    x = math.sin(i/max*6)*40000
41    y = math.cos(i/max*6)*40000
42    z = i*100
43    ?>
44<?lua
45for k = 1, 25, 1
46do
47j = math.random()
48?>
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) ?>">
[6929]51      <attached>
[8079]52        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[6929]53      </attached>
54      <?lua if i == 5 then ?><collisionShapes>
55        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
56      </collisionShapes> <?lua end ?>
57    </MovableEntity>
58<?lua
59end
60?>
61<?lua end ?>
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 />
63
64  </Scene>
65</Level>
Note: See TracBrowser for help on using the repository browser.