Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/FPSTest.oxw @ 9630

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