Decoding REXPaint Files in Odin

November 8, 2026 — #odin, #binary, #parsing, #rexpaint, #fimbul, #gamedev, #handmade, #roguelike, #gzip — 2910 words

REXPaint is an ASCII art tool by Kyzrati, the developer behind the fantastic roguelike Cogmind. You can use it to design UI, full-screen art, and level prefabs, which makes it a great fit for my game, Fimbul. In this post, we’ll walk through decoding REXPaint’s .xp files. If you haven’t worked with binary file formats before, this is a gentle one to start with!

Grid Sage Games publishes the official REXPaint manual as plaintext1, and Steve Landey hosts a more readable HTML version2. I’ll cite the HTML version throughout this post because its sections have direct links. Everything here is based on REXPaint v1.70.