Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/output/data/levels/presentationDM.oxw @ 8856

Last change on this file since 8856 was 8854, checked in by landauf, 13 years ago

change some output's level to verbose: 1. in Language.cc because it is printed a lot during the first startup of orxonox. 2. in InputManager.cc because the reloading happens each time the in game menu is opened or closed.
fixed possible "mass = 0" warning in presentationDM.oxw and fixed squared scaling of asteroid's size (?) because the scale was used for MovableEntity AND Model.

  • Property svn:eol-style set to native
File size: 5.2 KB
RevLine 
[7648]1<LevelInfo
2 name = "Presentation DM"
3 description = "Presentation Level"
4 tags = "presentation"
5/>
6
[5378]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")
[5378]13?>
14
15<Level
16 name         = "Presentation"
17 description  = "A simple testlevel"
[8822]18 gametype     = Deathmatch
[5378]19>
[7163]20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
[8706]23  <?lua include("includes/notifications.oxi") ?>
[7163]24
[5378]25  <Scene
26   ambientlight = "0.5, 0.5, 0.5"
27   skybox       = "Orxonox/skypanoramagen1"
28  >
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
[5519]31
[7163]32    <?lua
33      for i = 1, 10, 1 do
34    ?>
35      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
36    <?lua end ?>
[5383]37
38    <GlobalShader compositor="Bloom" visible=false>
39      <events>
40        <visibility>
41          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
42        </visibility>
43      </events>
44    </GlobalShader>
[5502]45
[7163]46    <?lua
47      for i = 1, 100, 1 do
48        j = math.random()
[8854]49        scale = j * 50 + 5
[7163]50    ?>
[8854]51      <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
[7163]52        <attached>
[8854]53          <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[7163]54        </attached>
55        <collisionShapes>
[8854]56          <SphereCollisionShape radius="<?lua print(scale * 2.5) ?>" />
[7163]57        </collisionShapes>
58      </MovableEntity>
59    <?lua end ?>
[5513]60
[5464]61<!--
[7163]62    <?lua
63      for i = 1, 70, 1 do
64    ?>
65      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
66        <attached>
67          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
68        </attached>
69      </MovableEntity>
70      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
71        <attached>
72          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
73        </attached>
74      </MovableEntity>
[5383]75
[7163]76      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
77        <attached>
78          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
79        </attached>
80      </MovableEntity>
81      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
82        <attached>
83          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
84        </attached>
85      </MovableEntity>
[5383]86
[7163]87      <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
88        <attached>
89          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
90        </attached>
91      </MovableEntity>
92      <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
93        <attached>
94          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
95        </attached>
96      </MovableEntity>
97    <?lua end ?>
[5464]98-->
[7163]99
[5378]100  </Scene>
101</Level>
Note: See TracBrowser for help on using the repository browser.