Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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