Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ProtectBoss_HS17/data/levels/Hover.oxw @ 11772

Last change on this file since 11772 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 2.1 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/spaceshipPirate.oxt")
16  include("templates/spaceshipHover.oxt")
17  include("overlays/HoverHUD.oxo")
18?>
19
20<?lua
21MAZE_NUM_CELLS = 10
22MAZE_CELL_SIZE = 100
23MAZE_CELL_HEIGHT = 30
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="50,20,50"
78      lookat="100,20,100"
79      spawnclass=HoverShip
80      pawndesign=spaceshiphover
81    />
82   
83  </Scene>
84</Level>
85
Note: See TracBrowser for help on using the repository browser.