Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

A Pawn being hit now prints it's Collisionshape-Structure, as well as the WorldEntity every on of those CollisionShapes belongs to.

  • Property svn:eol-style set to native
File size: 3.9 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,-100" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Pawn 0" >
52        <attached>
53            <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
54            <Model position="0,-60,0" mesh="cube.mesh" scale3D="30,30,30" />
55            <StaticEntity position="0,-120,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
56                <attached>
57                    <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
58                    <Model position="0,0,60" mesh="cube.mesh" scale3D="30,30,30" />
59                </attached>
60                <collisionShapes>
61                    <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
62                    <BoxCollisionShape position="0,0,60" halfExtents="30,30,30" />
63                </collisionShapes>
64            </StaticEntity>
65            <StaticEntity position="0,-180,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
66                <attached>
67                    <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
68                    <Model position="0,-60,0" mesh="cube.mesh" scale3D="30,30,30" />
69                </attached>
70                <collisionShapes>
71                    <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
72                    <BoxCollisionShape position="0,-60,0" halfExtents="30,30,30" />
73                </collisionShapes>
74            </StaticEntity>
75        </attached>
76        <collisionShapes>
77            <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
78            <BoxCollisionShape position="0,-60,0" halfExtents="30,30,30" />
79        </collisionShapes>
80    </Pawn>
81
82    <Pawn health=1000 initialhealth=1000 maxhealth=1000 position="0,-100,100" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Pawn 1" >
83        <attached>
84            <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
85            <Model position="0,-60,0" mesh="cube.mesh" scale3D="30,30,30" />
86        </attached>
87        <collisionShapes>
88            <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
89            <BoxCollisionShape position="0,-60,0" halfExtents="30,30,30" />
90        </collisionShapes>
91    </Pawn>
92   
93  </Scene>
94</Level>
95
Note: See TracBrowser for help on using the repository browser.