Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10011 was 10011, checked in by noep, 10 years ago

Cleaned up the process passing the collisionshape which was hit to the Pawn. Started implementation of ModularSpaceShip and ShipPart.

  • Property svn:eol-style set to native
File size: 4.3 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  include("templates/HeavyCruiser.oxt")
19?>
20
21<Level>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27  <Scene
28    ambientlight = "0.8, 0.8, 0.8"
29    skybox       = "Orxonox/Starbox"
30  >
31
32    <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"/>
33    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
34   
35    <MovableEntity position="0,0,0" collisionType=dynamic scale=1 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
36    <attached>
37        <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
38        <StaticEntity position="0,90,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
39            <attached>
40                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
41            </attached>
42            <collisionShapes>
43                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
44            </collisionShapes>
45        </StaticEntity>
46    </attached>
47    <collisionShapes>
48        <BoxCollisionShape position="0,0,0" halfExtents="40,40,40" />
49    </collisionShapes>
50    </MovableEntity>
51   
52    <Pawn health=1000 initialhealth=1000 maxhealth=1000 position="0,-100,-100" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Pawn 0" >
53        <attached>
54            <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
55            <Model position="0,-60,0" mesh="cube.mesh" scale3D="30,30,30" />
56            <StaticEntity position="0,-120,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
57                <attached>
58                    <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
59                    <Model position="0,0,60" mesh="cube.mesh" scale3D="30,30,30" />
60                </attached>
61                <collisionShapes>
62                    <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
63                    <BoxCollisionShape position="0,0,60" halfExtents="30,30,30" />
64                </collisionShapes>
65            </StaticEntity>
66            <StaticEntity position="0,-180,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
67                <attached>
68                    <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
69                    <Model position="0,-60,0" mesh="cube.mesh" scale3D="30,30,30" />
70                </attached>
71                <collisionShapes>
72                    <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
73                    <BoxCollisionShape position="0,-60,0" halfExtents="30,30,30" />
74                </collisionShapes>
75            </StaticEntity>
76        </attached>
77        <collisionShapes>
78            <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
79            <BoxCollisionShape position="0,-60,0" halfExtents="30,30,30" />
80        </collisionShapes>
81    </Pawn>
82
83    <Pawn health=1000 initialhealth=1000 maxhealth=1000 position="0,-100,100" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Pawn 1" >
84        <attached>
85            <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
86            <Model position="0,-60,0" mesh="cube.mesh" scale3D="30,30,30" />
87        </attached>
88        <collisionShapes>
89            <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
90            <BoxCollisionShape position="0,-60,0" halfExtents="30,30,30" />
91        </collisionShapes>
92    </Pawn>
93   
94    <ModularSpaceShip position="0,-100,-200">
95      <templates>
96        <Template link=spaceshippirate />
97      </templates>
98    </ModularSpaceShip>
99   
100    <ModularSpaceShip position="0,-1000,-200">
101      <templates>
102        <Template link=HeavyCruiser />
103      </templates>
104    </ModularSpaceShip>
105   
106  </Scene>
107</Level>
108
Note: See TracBrowser for help on using the repository browser.