|
|
Line 1: |
Line 1: |
− | Most .lvl files in current use follow this format. Some .lvl files, however, are [[Extended LVL]] maps. The format is reverse compatable, so there's no way to tell if you have a regular or extended .lvl file from inside the game. The way you can tell the difference is:
| + | apple cows |
− | | |
− | If the map does not have a tileset bitmap appended to it (first two bytes are not 'BM') and the first four bytes are 'elvl' then you have an Extended LVL file.
| |
− | | |
− | If the map does have a tileset bitmap (first two bytes are 'BM') then check the bfReserved1 field of the BITMAPFILEHEADER. If it is 49720, and the bfSize is not 49718, you are guarenteed to either have an eLVL file, or a corrupt file. For more information see the [[ELVL Format]].
| |
− | | |
− | This regular format is also described in http://www.rarefied.org/subspace/lvlformat.html
| |
− | | |
− | Basically it is a bitmap with tile data appended to it.
| |
− | Each tile is represented in this format: (little endian)
| |
− | <pre>
| |
− | struct
| |
− | {
| |
− | unsigned long x : 12;
| |
− | unsigned long y : 12;
| |
− | unsigned long tile : 8;
| |
− | };
| |
− | </pre>
| |
− | | |
− | The x and y must not exceed 1023.
| |
− | | |
− | == Tileset ==
| |
− | This is an uncompressed bitmap image (typically 256-color) 304x160 [[Pixels | pixels]], making each [[Tiles | tile]] 16x16 pixels.
| |
− | | |
− | [[Image:Tileset.jpg|Tileset]]
| |
− | | |
− | When editing maps with a tileset, there are different types of tiles, outlined below:
| |
− | | |
− | [[Image:TilesetDescription.PNG|Tileset With Descriptions]]
| |
− | | |
− | Note that although you might have a good looking soccer goal or flag tile, it will not show up in the game. This is because there is a custom [[animation]] for these two tiles. You can find and edit these tiles by looking at Continuum\graphics\goal.bm2 and Continuum\graphics\flag.bm2. You can have other users use your custom goal or flag animation by including your new animations in a [[LVZ]] File.
| |
− | | |
− | == Special Objects ==
| |
− | These are special animated objects. The most popular map editor, [[SSME]], calls these 'Special Objects' and changes the mouse pointer to a stamper.
| |
− | | |
− | There are five objects available:
| |
− | *A small asteroid.
| |
− | *A medium asteroid (2x2 tiles).
| |
− | *Another small asteroid (was originally a large asteroid).
| |
− | *A space station (6x6 tiles).
| |
− | *A worm hole (5x5 tiles).
| |
− | | |
− | == Extra Tiles ==
| |
− | There are some types, which are not meant to be part of typical mapmaking programs, but have been discovered and may have uses.
| |
− | | |
− | Tile: Description
| |
− | *191: Invisible on screen, visible on radar, ships can go through them, items bounce off it, 'thors' go through it. (If you 'launch' an item while in it, the item will float suspended in space).
| |
− | *192-215: Invisible on screen, visible on radar, solid block (like any other tile).
| |
− | *216: A small asteroid, nothing not previously known about this.
| |
− | *217: A medium asteroid, nothing not previously known about this.
| |
− | *218: Another small asteroid, just the same as the other one, except the graphics are a little different(?)
| |
− | *219: A space station, nothing not previously known about this.
| |
− | *220: A wormhole, nothing not previously known about this.
| |
− | *221-240: Invisible on screen, visible on radar, solid block (like any other tile).
| |
− | *241: Invisible on screen, visible on radar, ship can go through it but Items disappear when they touch it.
| |
− | *242: Invisible on screen, invisible on radar, warps your ship on contact, items bounce off it, 'thors' disappear on contact.
| |
− | *243-251: Invisible on screen, invisible on radar, solid block (like any other tile).
| |
− | *252: Visible on screen (animated enemy brick), invisible on radar, items go through it, your ship gets warped after a random amount of time (0-2 seconds) while floating on it.
| |
− | *253: Visible on screen (animated team brick), invisible on radar, items go through it, so does your ship.
| |
− | *254: Invisible on screen, invisible on radar, items go through it, so does your ship. Possibly the internal representation of fly under tiles. You can't brick or mine while on it.
| |
− | *255: Visible on screen (animated prize), invisible on radar, items go through it, so does your ship. This is a prize, but it doesn't show up on radar, and no matter how many times you fly over it, you will never pick it up, ever.
| |
− | | |
− | [[Category: Formats]]
| |
− | [[Category: Map]]
| |