Gods Worm Head List Format

From ModdingWiki
Jump to navigation Jump to search

PBUMLIST.BIN is a small animation list used by the guardian at the end of world 4 in Gods, a giant worm. It controls which head frame is drawn on each frame of the worm's movement. The file is compressed with PKWARE DCL Compression and is 256 bytes when decompressed.

File format

The file is 256 single bytes, read one per call to the head drawing routine, from the start. The read position is reset to the start whenever the worm is (re)spawned. There is no end marker; the list is simply long enough for the worm's movement.

Bits Meaning
0-2 Head frame d (0-7), which also selects a built-in (x, y) offset for the head
3-7 If any of these bits are set, a different set of head sprites is used (sprite number +17), and if bit 4 is set, one more (+18)

The sprite drawn is 482 + d (0x1E2 + d), adjusted as above. Sprite numbers are explained in Gods Sprite Format.

The shipped file mostly contains the values 0-7, with runs of 8-22, two 162s and 23 bytes of 0xFF.

Source code

From re-gods, the open-source HTML5 port:

Credits

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