Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/Hover.oxw @ 12397

Last change on this file since 12397 was 12397, checked in by kofrey, 6 years ago

abc

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
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
21MAZE_NUM_CELLS = 10
22MAZE_CELL_SIZE = 100
23MAZE_CELL_HEIGHT = 100
24MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
25?>
26
27<Level
28plugins = hover
29gametype = 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="500,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    <SpaceShip position="500,10000,500" lookat="50,20,50" name="enemy" health="200" maxhealth="200" initialhealth="200" >
90      <templates>
91              <Template link=spaceshipzombie />
92      </templates>
93    </SpaceShip>
94
95
96
97
98   
99  </Scene>
100</Level>
Note: See TracBrowser for help on using the repository browser.