Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spaceboundaries/data/levels/FPSTest.oxw @ 8166

Last change on this file since 8166 was 8079, checked in by landauf, 14 years ago

merged usability branch back to trunk

incomplete summary of the changes in this branch:

  • enhanced keyboard navigation in GUIs
  • implemented new graphics menu and changeable window size at runtime
  • added developer mode
  • HUD shows if game is paused, game pauses if ingame menu is opened
  • removed a few obsolete commands and hid some that are more for internal use
  • numpad works in console and gui
  • faster loading of level info
  • enhanced usage of compositors (Shader class)
  • improved camera handling, configurable FOV and aspect ratio
  • 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/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/spaceshipH2.oxt")
12  include("templates/FPS.oxt")
13  include("templates/lodInformation.oxt")
14?>
15
16<Level
17 name         = "fps"
18 description  = "tests"
19>
20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23
24  <Scene
25   ambientlight = "0.1, 0.1, 0.1"
26   skybox       = "Orxonox/skypanoramagen1"
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.