Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/fps_test.oxw @ 7163

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

Merged presentation3 branch into trunk.

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5  include("templates/spaceship_H2.oxt")
6  include("templates/fps.oxt")
7  include("templates/lodinformation.oxt")
8?>
9
10<Level
11 name         = "fps"
12 description  = "tests"
13>
14  <templates>
15    <Template link=lodtemplate_default />
16  </templates>
17
18  <Scene
19   ambientlight = "0.1, 0.1, 0.1"
20   skybox       = "Orxonox/skypanoramagen1"
21   gravity      = "0,-1000,0"
22   negativeWorldRange = "(-100000, -100000, -100000)"
23   positiveWorldRange = "( 100000,  100000,  100000)"
24   hasPhysics   = true
25  >
26    <Light type=directional position="0,-100000,0" direction="0.02, -1, 0.05" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
27
28  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
29      <attached>
30        <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" />
31      </attached>
32      <collisionShapes>
33        <BoxCollisionShape position="0,0,0" halfExtents="10000,10000,1000" />
34      </collisionShapes>
35  </StaticEntity>
36
37<?lua
38for i = 1, 10, 1
39do ?>
40    <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,100,<?lua print(math.random() * 1000 - 500) ?>" direction="-1, 0, 0" lookat="0,0,0" spawnclass=FpsPlayer pawndesign=fps />
41<?lua
42end
43?>
44
45
46<?lua
47for i = 1, 200, 1
48do
49j = math.random()
50?>
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(j * 100) ?> 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) ?>" >
52      <attached>
53        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
54      </attached>
55      <collisionShapes>
56        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
57      </collisionShapes>
58  </MovableEntity>
59<?lua
60end
61?>
62
63  </Scene>
64</Level>
65
Note: See TracBrowser for help on using the repository browser.