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 |
---|
21 | MAZE_NUM_CELLS = 10 |
---|
22 | MAZE_CELL_SIZE = 100 |
---|
23 | MAZE_CELL_HEIGHT = 30 |
---|
24 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
25 | ?> |
---|
26 | |
---|
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 | |
---|
43 | <Template name=destroyhoverpickup baseclass=MetaPickup> |
---|
44 | <MetaPickup representation="destroyhover" metaType="destroy" /> |
---|
45 | </Template> |
---|
46 | |
---|
47 | <Level |
---|
48 | plugins = hover |
---|
49 | gametype = Hover |
---|
50 | > |
---|
51 | <templates> |
---|
52 | <Template link=lodtemplate_default /> |
---|
53 | </templates> |
---|
54 | |
---|
55 | <?lua include("includes/notifications.oxi") ?> |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | <Scene |
---|
61 | ambientlight = "0.8, 0.8, 0.8" |
---|
62 | skybox = "Orxonox/Starbox" |
---|
63 | gravity = "0, -200, 0" |
---|
64 | > |
---|
65 | |
---|
66 | <PickupRepresentation |
---|
67 | name = "destroyhover" |
---|
68 | pickupName = "Destroy Hover Pickup" |
---|
69 | pickupDescription = "destroys you." |
---|
70 | spawnerTemplate = "destroyhoverpickupRepresentation" |
---|
71 | inventoryRepresentation = "destroyHoverPickup" |
---|
72 | /> |
---|
73 | |
---|
74 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
75 | <attached> |
---|
76 | <HoverOrigin |
---|
77 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
78 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
79 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
80 | pickuptemplate=destroyhoverpickup |
---|
81 | pickuprepresentationtemplate=destroyhoverpickupRepresentation |
---|
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> |
---|
100 | |
---|
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 | /> |
---|
108 | |
---|
109 | <SpawnPoint |
---|
110 | team=0 |
---|
111 | position="50,20,50" |
---|
112 | lookat="100,20,100" |
---|
113 | spawnclass=HoverShip |
---|
114 | pawndesign=spaceshiphover |
---|
115 | /> |
---|
116 | |
---|
117 | </Scene> |
---|
118 | </Level> |
---|
119 | |
---|