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