Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10080 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 2.2 KB
RevLine 
[9939]1<!-- -->
[7648]2<LevelInfo
3 name = "FPS testlevel"
4 description = "Level to test First Person Shooter"
5 tags = "test"
[9016]6 screenshot = "fpstestlevel.png"
[7648]7/>
8
[6867]9<?lua
[7679]10  include("HUDTemplates3.oxo")
[6867]11  include("stats.oxo")
[7679]12  include("templates/spaceshipAssff.oxt")
13  include("templates/spaceshipH2.oxt")
14  include("templates/FPS.oxt")
15  include("templates/lodInformation.oxt")
[6867]16?>
17
[9016]18<Level>
[7083]19  <templates>
20    <Template link=lodtemplate_default />
21  </templates>
[8706]22  <?lua include("includes/notifications.oxi") ?>
[7083]23
[6867]24  <Scene
25   ambientlight = "0.1, 0.1, 0.1"
[9348]26   skybox       = "Orxonox/skyBoxBasic"
[6867]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.