Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/environment3/data/levels/FPSTest.oxw @ 8946

Last change on this file since 8946 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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