LEV Format

Warning! YAWN ALERT!

The LEV file format is a binary format used by Liero and WebLiero, and likely anywhere else 8bpp indexed-color 504x350 paletteless images tend to show up (I made a funny!). If you see a 176,400 byte file or section, you should raise at least one of your eyebrows.

Normal LEV files contain nothing but the raw indexed pixel data for a fixed 504x350 level:

Type / SizeDescription
Level Data (504*350 bytes)Indexed pixel data in row-major order

See the materials guide to better understand how the palette maps to Liero level materials.

There is another closely related format called POWERLEV. The first 176,400 bytes hold the level data, identically to a normal LEV. POWERLEV format simply appends a small identifying header followed by a palette after the level data:

Type / SizeDescription
Character (Ascii Byte)'P'
Character (Ascii Byte)'O'
Character (Ascii Byte)'W'
Character (Ascii Byte)'E'
Character (Ascii Byte)'R'
Character (Ascii Byte)'L'
Character (Ascii Byte)'E'
Character (Ascii Byte)'V'
Character (Ascii Byte)'E'
Character (Ascii Byte)'L'
Palette (768 bytes)Custom palette

POWERLEV extensions are not supported by WebLiero. The LEV files themselves will still load, albeit without the included palette.