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/spaceshipHover.oxt") |
---|
16 | include("overlays/HoverHUD.oxo") |
---|
17 | ?> |
---|
18 | |
---|
19 | <?lua |
---|
20 | include("stats.oxo") |
---|
21 | include("HUDTemplates3.oxo") |
---|
22 | include("templates/lodInformation.oxt") |
---|
23 | include("templates/pickupRepresentationTemplates.oxt") |
---|
24 | |
---|
25 | ?> |
---|
26 | |
---|
27 | <?lua |
---|
28 | MAZE_NUM_CELLS = 10 |
---|
29 | MAZE_CELL_SIZE = 100 |
---|
30 | MAZE_CELL_HEIGHT = 100 |
---|
31 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
32 | ?> |
---|
33 | |
---|
34 | <Level |
---|
35 | plugins = hover |
---|
36 | gametype = Hover |
---|
37 | |
---|
38 | |
---|
39 | > |
---|
40 | <templates> |
---|
41 | <Template link=lodtemplate_default /> |
---|
42 | </templates> |
---|
43 | <?lua include("includes/notifications.oxi") ?> |
---|
44 | |
---|
45 | <Scene |
---|
46 | ambientlight = "0.8, 0.8, 0.8" |
---|
47 | skybox = "Orxonox/Starbox" |
---|
48 | gravity = "0, -200, 0" |
---|
49 | > |
---|
50 | |
---|
51 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
52 | <attached> |
---|
53 | <HoverOrigin |
---|
54 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
55 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
56 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
57 | /> |
---|
58 | <Model |
---|
59 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
60 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
61 | mesh="CubeGround.mesh" |
---|
62 | /> |
---|
63 | </attached> |
---|
64 | <collisionShapes> |
---|
65 | <BoxCollisionShape |
---|
66 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
67 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
68 | /> |
---|
69 | <BoxCollisionShape |
---|
70 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
71 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
72 | /> |
---|
73 | </collisionShapes> |
---|
74 | </StaticEntity> |
---|
75 | |
---|
76 | <Light |
---|
77 | type=directional |
---|
78 | position="-50,500,-50" |
---|
79 | direction="0.577, -0.577, 0.577" |
---|
80 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
81 | specular="1.0, 0.9, 0.9, 1.0" |
---|
82 | /> |
---|
83 | |
---|
84 | <SpawnPoint |
---|
85 | team=0 |
---|
86 | position="50,20,50" |
---|
87 | lookat="100,20,100" |
---|
88 | spawnclass=HoverShip |
---|
89 | pawndesign=spaceshiphover |
---|
90 | /> |
---|
91 | |
---|
92 | <SpaceShip position="100,20,100" lookat="50,20,50" name="enemy" health="200" maxhealth="200" initialhealth="200" > |
---|
93 | <templates> |
---|
94 | <Template link=spaceshiphover /> |
---|
95 | </templates> |
---|
96 | <controller> |
---|
97 | <WaypointPatrolController alertnessradius=2000 team=1 > |
---|
98 | <waypoints> |
---|
99 | <Model mesh="cube.mesh" scale=0 position="15500,15500,15500" /> |
---|
100 | |
---|
101 | </waypoints> |
---|
102 | |
---|
103 | </WaypointPatrolController> |
---|
104 | |
---|
105 | </controller> |
---|
106 | </SpaceShip> |
---|
107 | |
---|
108 | </Scene> |
---|
109 | </Level> |
---|