Skip to content

Room file format

Thomyrock edited this page Jul 1, 2020 · 4 revisions

Room file

Each room is 8 by 7 sized. Each square is encoded in a 4 bit value.

Room format

Offset Size Content
0x0 1 byte 4 bit door flags (7: top, 6: bottom, 5: left, 4: right), 1 bit reserved, 3 bit room type ID
0x1 1 byte Room ID, unique for each room
0x2 1 byte Size in bytes
0x3 28 bytes Room content
0x1F ? Square extended data

Square values

Value Type
0 Floor
1 Pit
2 Rock
3 Bomb
4 Key
5 Heart
6 Chest
7 Stairs
15 Ennemy

Room types

Value Type
0 Normal
1 Item
2 Boss
4 Start
Clone this wiki locally