Trugg Level Format
Format type | Map/level |
---|---|
Map type | 2D tile-based |
Layer count | 1 |
Tile size (pixels) | 20×20 |
Viewport (pixels) | 320×240 |
Games |
This file is used to store the puzzles in Trugg.
File format
Signature
There is no signature for this format.
Level entry
The file consists of the following structure repeated end-to-end until the end of the file.
Data type | Description |
---|---|
char title[30] | Level name |
BYTE tiles[192] | Level data (16 tiles wide, 12 tiles high, one byte per tile) |
BYTE padding[192] | Another 12 rows of unused (blank) data |
The tiles are laid out in a normal left-to-right, top-to-bottom pattern, and when the map file is viewed in a good hex editor (capable of displaying control characters) the level is clearly visible.
The file is padded with enough blank space to bring it up to 100 levels, and following the 100th level there are two bytes of unknown purpose (perhaps a checksum.)
Notes
As the tileset format is currently unknown, it is also unknown how to convert the byte values into images.
Credits
This file format was reverse engineered by Malvineous. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)