Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/Hover.oxw @ 11764

Last change on this file since 11764 was 11495, checked in by patricwi, 7 years ago

reverted commit from merge with tgidronFS16 because failed to compile

  • Property svn:eol-style set to native
File size: 2.1 KB
RevLine 
[10660]1<LevelInfo
2 name = "Hover level"
3 description = "Level for Minigame Hover"
4 tags = "minigame"
[11495]5 screenshot = "emptylevel.png"
[10660]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")
[10760]16  include("templates/spaceshipHover.oxt")
[10895]17  include("overlays/HoverHUD.oxo")
[10660]18?>
19
[11040]20<?lua
21MAZE_NUM_CELLS = 10
[11495]22MAZE_CELL_SIZE = 100
23MAZE_CELL_HEIGHT = 30
[11040]24MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
25?>
26
[10660]27<Level
[10664]28plugins = hover
[10660]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"
[11495]39    gravity      = "0, -200, 0"
[10660]40  >
41
[11040]42    <StaticEntity position="0,0,0" collisionType="static">
[10751]43      <attached>
[11040]44        <HoverOrigin
45          numCells="<?lua print(MAZE_NUM_CELLS)?>"
46          cellSize="<?lua print(MAZE_CELL_SIZE)?>"
47          cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
48        />
[11495]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        />
[11040]54      </attached>
[11495]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>
[11040]65    </StaticEntity>
[10751]66
[11040]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    />
[10668]74   
[11040]75    <SpawnPoint
76      team=0
[11495]77      position="50,20,50"
78      lookat="100,20,100"
[11040]79      spawnclass=HoverShip
80      pawndesign=spaceshiphover
81    />
[10660]82   
83  </Scene>
84</Level>
[11495]85
Note: See TracBrowser for help on using the repository browser.