Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Pickups work; Lives Counter and Total Flag Counter

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