Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tgidronFS16/data/levels/Hover.oxw @ 11168

Last change on this file since 11168 was 11168, checked in by tgidron, 8 years ago

Pickups + Flags HUD

  • Property svn:eol-style set to native
File size: 3.2 KB
Line 
1<LevelInfo
2 name = "Hover level"
3 description = "Level for Minigame Hover"
4 tags = "minigame"
5 screenshot = "Hover.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/spaceshipPirate.oxt")
16  include("templates/spaceshipHover.oxt")
17  include("overlays/HoverHUD.oxo")
18?>
19
20<?lua
21MAZE_NUM_CELLS = 10
22MAZE_CELL_SIZE = 100
23MAZE_CELL_HEIGHT = 30
24MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
25?>
26
27<?lua
28    include("templates/pickupRepresentationTemplates.oxt")
29    include("includes/pickups.oxi")
30 ?>
31
32<Template name=destroyhoverpickupRepresentation>
33    <PickupRepresentation>
34        <spawner-representation>
35            <StaticEntity>
36                <attached>
37                    <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
38                        <attached>
39                            <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 />
40                        </attached>
41                    </Billboard>
42                </attached>
43            </StaticEntity>
44        </spawner-representation>
45    </PickupRepresentation>
46</Template>
47
48<Template name=destroymetapickup baseclass=MetaPickup>
49  <MetaPickup representation="destroy" metaType="destroy" />
50</Template>
51
52<PickupRepresentation
53    name = "destroyhover"
54    pickupName = "Destroy Carrier Pickup"
55    pickupDescription = "destroys you."
56    spawnerTemplate = "destroyhoverpickupRepresentation"
57    inventoryRepresentation = "destroyCarrierPickup"
58/>
59
60
61<Level
62plugins = hover
63gametype = Hover
64>
65  <templates>
66    <Template link=lodtemplate_default />
67  </templates>
68  <?lua include("includes/notifications.oxi") ?>
69
70
71
72
73  <Scene
74    ambientlight = "0.8, 0.8, 0.8"
75    skybox       = "Orxonox/Starbox"
76    gravity      = "0, -200, 0"
77  >
78
79    <StaticEntity position="0,0,0" collisionType="static">
80      <attached>
81        <HoverOrigin
82          numCells="<?lua print(MAZE_NUM_CELLS)?>"
83          cellSize="<?lua print(MAZE_CELL_SIZE)?>"
84          cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
85          pickuptemplate=destroyhoverpickupRepresentation
86          pickupbase=destroymetapickup
87        />
88        <Model
89          position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
90          scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
91          mesh="CubeGround.mesh"
92        />
93      </attached>
94      <collisionShapes>
95        <BoxCollisionShape
96          position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
97          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
98        />
99        <BoxCollisionShape
100          position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
101          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
102        />
103      </collisionShapes>
104    </StaticEntity>
105
106    <Light
107      type=directional
108      position="-50,500,-50"
109      direction="0.577, -0.577, 0.577"
110      diffuse="1.0, 0.9, 0.9, 1.0"
111      specular="1.0, 0.9, 0.9, 1.0"
112    />
113   
114    <SpawnPoint
115      team=0
116      position="50,20,50"
117      lookat="100,20,100"
118      spawnclass=HoverShip
119      pawndesign=spaceshiphover
120    />
121   
122  </Scene>
123</Level>
124
Note: See TracBrowser for help on using the repository browser.