1 | <LevelInfo |
---|
2 | name = "Hover level" |
---|
3 | description = "Level for Minigame Hover" |
---|
4 | tags = "minigame" |
---|
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/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 | <PickupRepresentation |
---|
44 | name = "destroyhover" |
---|
45 | pickupName = "Destroy Carrier Pickup" |
---|
46 | pickupDescription = "destroys you." |
---|
47 | spawnerTemplate = "destroyhoverpickupRepresentation" |
---|
48 | inventoryRepresentation = "destroyCarrierPickup" |
---|
49 | /> |
---|
50 | |
---|
51 | |
---|
52 | <Level |
---|
53 | plugins = hover |
---|
54 | gametype = Hover |
---|
55 | > |
---|
56 | <templates> |
---|
57 | <Template link=lodtemplate_default /> |
---|
58 | </templates> |
---|
59 | <?lua include("includes/notifications.oxi") ?> |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | |
---|
64 | <Scene |
---|
65 | ambientlight = "0.8, 0.8, 0.8" |
---|
66 | skybox = "Orxonox/Starbox" |
---|
67 | gravity = "0, -200, 0" |
---|
68 | > |
---|
69 | |
---|
70 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
71 | <attached> |
---|
72 | <HoverOrigin |
---|
73 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
74 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
75 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
76 | /> |
---|
77 | <Model |
---|
78 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
79 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
80 | mesh="CubeGround.mesh" |
---|
81 | /> |
---|
82 | </attached> |
---|
83 | <collisionShapes> |
---|
84 | <BoxCollisionShape |
---|
85 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
86 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
87 | /> |
---|
88 | <BoxCollisionShape |
---|
89 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
90 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
91 | /> |
---|
92 | </collisionShapes> |
---|
93 | </StaticEntity> |
---|
94 | |
---|
95 | <Light |
---|
96 | type=directional |
---|
97 | position="-50,500,-50" |
---|
98 | direction="0.577, -0.577, 0.577" |
---|
99 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
100 | specular="1.0, 0.9, 0.9, 1.0" |
---|
101 | /> |
---|
102 | |
---|
103 | <SpawnPoint |
---|
104 | team=0 |
---|
105 | position="50,20,50" |
---|
106 | lookat="100,20,100" |
---|
107 | spawnclass=HoverShip |
---|
108 | pawndesign=spaceshiphover |
---|
109 | /> |
---|
110 | |
---|
111 | </Scene> |
---|
112 | </Level> |
---|
113 | |
---|