Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationFS15/data/levels/FPSTest.oxw @ 10498

Last change on this file since 10498 was 9939, checked in by jo, 10 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1<!-- -->
2<LevelInfo
3 name = "FPS testlevel"
4 description = "Level to test First Person Shooter"
5 tags = "test"
6 screenshot = "fpstestlevel.png"
7/>
8
9<?lua
10  include("HUDTemplates3.oxo")
11  include("stats.oxo")
12  include("templates/spaceshipAssff.oxt")
13  include("templates/spaceshipH2.oxt")
14  include("templates/FPS.oxt")
15  include("templates/lodInformation.oxt")
16?>
17
18<Level>
19  <templates>
20    <Template link=lodtemplate_default />
21  </templates>
22  <?lua include("includes/notifications.oxi") ?>
23
24  <Scene
25   ambientlight = "0.1, 0.1, 0.1"
26   skybox       = "Orxonox/skyBoxBasic"
27   gravity      = "0,-1000,0"
28   negativeWorldRange = "-100000, -100000, -100000"
29   positiveWorldRange = " 100000,  100000,  100000"
30   hasPhysics   = true
31  >
32    <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" />
33
34  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
35      <attached>
36        <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" />
37      </attached>
38      <collisionShapes>
39        <BoxCollisionShape position="0,0,0" halfExtents="10000,10000,1000" />
40      </collisionShapes>
41  </StaticEntity>
42
43<?lua
44for i = 1, 10, 1
45do ?>
46    <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 />
47<?lua
48end
49?>
50
51
52<?lua
53for i = 1, 200, 1
54do
55j = math.random()
56?>
57  <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) ?>" >
58      <attached>
59        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
60      </attached>
61      <collisionShapes>
62        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
63      </collisionShapes>
64  </MovableEntity>
65<?lua
66end
67?>
68
69  </Scene>
70</Level>
71
Note: See TracBrowser for help on using the repository browser.