Prehistorik Level Format

From ModdingWiki
Jump to: navigation, search
Prehistorik Level Format
320px
There is no image of a map in this format — upload one!
Format typeMap/level
Map type2D tile-based
Layer count2
Tile size (pixels)16×16
Viewport (pixels)320×200
Games

Prehistorik stores its level data inside the main .exe file. Each screen is an independent list of objects, starting at (0, 0) as the top-left corner of the screen.

File format

Each screen within a level is comprised of the following structure, repeated once for each object in the level.

Data type Name Description
UINT16LE xPos X location of the object
UINT16LE yPos Y location of the object, in pixels from the top of the screen
UINT16LE type Object type (see below)

This structure is repeated until the end of the screen. ! It is current unknown how to calculate the length of each screen

Object types

Each type value in the structure above is as follows: ! This list is incomplete

Code Description
0x00 Trampoline! Causes strange behaviour though
0x01 Left ledge (earth)
0x02 Square block (earth)
0x03 Right ledge (earth)
0x04 Rock sign: "level 1"
0x05 Rock wall left ledge
0x06 Rock wall solid rectangle
0x07 Rock wall right ledge
0x08 Block of water with waves (background)
0x09 Rock wall with cave entry
0x0A Ladder
0x0B Green line?
0x0C Green line?
0x0D Pine tree
0x0E ! TODO
0x0F Different water with waves (background)
0x10 Palm tree
0x11 Underwater bubbles background
0x12 Underwater bubbles background #2
0x13 Underwater bubbles background #3
0x14 Green line?
0x15 Bush/shrubbery
0x16 Rock wall solid rectangle (without walkable top)
0x17 Cave background right
0x18 Cave background middle
0x19 Dinosaur

Credits

This file format was reverse engineered by KeenRush. 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!)