Cosmo Demo Format

From ModdingWiki
Jump to navigation Jump to search

This file is used to store the control inputs for Cosmo when playing the demo game. An entry is stored for each game frame. Up to 4999 entries can be recorded.

File format

Data type Name Description
UINT16LE numEntries The number of entries in the file. The maximum number allowed is 4999
UINT8[...] demoInputData demo input values (see below)


Each entry in the file is packed into a UINT8 in the following way. The input is active when the corresponding bit is set.

Bit Description
7 Unused
6 Proceed to next level
5 Drop bomb
4 Jump
3 Cosmo down
2 Cosmo up
1 Cosmo right
0 Cosmo left

Credits

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