Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8566 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
RevLine 
[7648]1<LevelInfo
2 name = "FPS testlevel"
3 description = "Level to test First Person Shooter"
4 tags = "test"
5/>
6
[6867]7<?lua
[7679]8  include("HUDTemplates3.oxo")
[6867]9  include("stats.oxo")
[7679]10  include("templates/spaceshipAssff.oxt")
11  include("templates/spaceshipH2.oxt")
12  include("templates/FPS.oxt")
13  include("templates/lodInformation.oxt")
[6867]14?>
15
16<Level
17 name         = "fps"
18 description  = "tests"
19>
[7083]20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23
[6867]24  <Scene
25   ambientlight = "0.1, 0.1, 0.1"
26   skybox       = "Orxonox/skypanoramagen1"
27   gravity      = "0,-1000,0"
[7284]28   negativeWorldRange = "-100000, -100000, -100000"
29   positiveWorldRange = " 100000,  100000,  100000"
[6867]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
[6882]34  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
[6867]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?>
[7057]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) ?>" >
[6867]58      <attached>
[8079]59        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[6867]60      </attached>
61      <collisionShapes>
62        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
63      </collisionShapes>
[7057]64  </MovableEntity>
[6867]65<?lua
66end
67?>
68
69  </Scene>
70</Level>
71
Note: See TracBrowser for help on using the repository browser.