Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/FPSTest.oxw @ 8945

Last change on this file since 8945 was 8916, checked in by baermatt, 14 years ago

Associated each screenshot to the correct level

  • Property svn:eol-style set to native
File size: 2.3 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 name         = "fps"
19 description  = "tests"
20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27   ambientlight = "0.1, 0.1, 0.1"
28   skybox       = "Orxonox/skypanoramagen1"
29   gravity      = "0,-1000,0"
30   negativeWorldRange = "-100000, -100000, -100000"
31   positiveWorldRange = " 100000,  100000,  100000"
32   hasPhysics   = true
33  >
34    <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" />
35
36  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
37      <attached>
38        <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" />
39      </attached>
40      <collisionShapes>
41        <BoxCollisionShape position="0,0,0" halfExtents="10000,10000,1000" />
42      </collisionShapes>
43  </StaticEntity>
44
45<?lua
46for i = 1, 10, 1
47do ?>
48    <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 />
49<?lua
50end
51?>
52
53
54<?lua
55for i = 1, 200, 1
56do
57j = math.random()
58?>
59  <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) ?>" >
60      <attached>
61        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
62      </attached>
63      <collisionShapes>
64        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
65      </collisionShapes>
66  </MovableEntity>
67<?lua
68end
69?>
70
71  </Scene>
72</Level>
73
Note: See TracBrowser for help on using the repository browser.