Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/modularships/data/levels/emptyLevel.oxw @ 9997

Last change on this file since 9997 was 9997, checked in by noep, 11 years ago

Added functions to print the collisionshape-structure of a Pawn which gets hit. Doesn't quite work yet.

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1<LevelInfo
2 name = "Empty level"
3 description = "A level with absolutely nothing in it."
4 tags = "test"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
15  include("templates/spaceshipAssff2.oxt")
16  include("templates/spaceshipPirate.oxt")
17  include("templates/spaceshipEscort.oxt")
18?>
19
20<Level>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox"
29  >
30
31    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
32    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
33   
34    <MovableEntity position="0,0,0" collisionType=dynamic scale=1 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
35    <attached>
36        <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
37        <StaticEntity position="0,90,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
38            <attached>
39                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
40            </attached>
41            <collisionShapes>
42                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
43            </collisionShapes>
44        </StaticEntity>
45    </attached>
46    <collisionShapes>
47        <BoxCollisionShape position="0,0,0" halfExtents="40,40,40" />
48    </collisionShapes>
49    </MovableEntity>
50   
51    <Pawn health=1000 initialhealth=1000 maxhealth=1000 position="0,-100,0" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Box 4" >
52        <attached>
53            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
54            <Model position="0,-30,0" mesh="cube.mesh" scale3D="15,15,15" />
55            <StaticEntity position="0,-60,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
56                <attached>
57                    <Model position="0,0,0" mesh="cube.mesh" scale3D="15,15,15" />
58                    <Model position="0,0,30" mesh="cube.mesh" scale3D="15,15,15" />
59                </attached>
60                <collisionShapes>
61                    <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
62                    <BoxCollisionShape position="0,0,30" halfExtents="15,15,15" />
63                </collisionShapes>
64            </StaticEntity>
65        </attached>
66        <collisionShapes>
67            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
68            <BoxCollisionShape position="0,-30,0" halfExtents="15,15,15" />
69        </collisionShapes>
70    </Pawn>
71   
72  </Scene>
73</Level>
74
Note: See TracBrowser for help on using the repository browser.