Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fps/data/levels/presentation_FS10.oxw @ 6883

Last change on this file since 6883 was 6883, checked in by freicy, 14 years ago

by cyrill

File size: 3.2 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5  include("templates/spaceship_H2.oxt")
6  include("templates/fps.oxt")
7?>
8
9<Level
10 name         = "fps"
11 description  = "tests"
12>
13  <Scene
14   ambientlight = "0.1, 0.1, 0.1"
15   skybox       = "Orxonox/skypanoramagen1"
16   gravity      = "0,-1000,0"
17   negativeWorldRange = "(-100000, -100000, -100000)"
18   positiveWorldRange = "( 100000,  100000,  100000)"
19   hasPhysics   = true
20  >
21    <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" />
22
23  <StaticEntity position="0,-50,0" direction="0,-1,0" collisionType=static mass=100000 >
24      <attached>
25        <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" />
26      </attached>
27      <collisionShapes>
28        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
29      </collisionShapes>
30  </StaticEntity>
31
32   <StaticEntity position="210,-30,0" direction="0,-1,0" collisionType=static mass=100000 >
33      <attached>
34        <Model position="0,0,0" mesh="cube_orange.mesh" scale3D="100,100,10" />
35      </attached>
36      <collisionShapes>
37        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
38      </collisionShapes>
39  </StaticEntity>
40 
41   <StaticEntity position="600,-20,0" direction="0,-1,0" collisionType=static mass=100000 >
42      <attached>
43        <Model position="0,0,0" mesh="cube_green.mesh" scale3D="100,100,10" />
44      </attached>
45      <collisionShapes>
46        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
47      </collisionShapes>
48  </StaticEntity>
49
50<StaticEntity position="600,10,120" direction="0,-1,1" collisionType=static mass=100000 >
51      <attached>
52        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="100,100,10" />
53      </attached>
54      <collisionShapes>
55        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
56      </collisionShapes>
57  </StaticEntity>
58 
59  <StaticEntity position="600,40,250" direction="0,-1,0" collisionType=static mass=100000 >
60      <attached>
61        <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" />
62      </attached>
63      <collisionShapes>
64        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
65      </collisionShapes>
66  </StaticEntity>
67<?lua
68for i = 1, 10, 1
69do ?>
70    <SpawnPoint position="0,300,0" direction="0, 0, 0" lookat="0,0,100000000" spawnclass=FpsPlayer pawndesign=fps />
71<?lua
72end
73?>
74
75<!--
76<?lua
77for i = 1, 200, 1
78do
79j = math.random()
80?>
81
82    <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) ?>" >
83      <attached>
84        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
85      </attached>
86      <collisionShapes>
87        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
88      </collisionShapes>
89    </MovableEntity>
90<?lua
91end
92?>
93-->
94  </Scene>
95</Level>
Note: See TracBrowser for help on using the repository browser.