D 2018-08-18T02:38:49.250 L Picture\sfile\sformat P 2cec602cd94a9df2351fced5db4da58be7181383 U zzo38 W 1684 This document describes the format of the .xclass files. This file is a Hamster archive; all numbers are small-endian (except lump sizes). The possible lumps are mentioned below. Despite the page title, this file contains both pictures and sounds.

*.IMG

Replace the asterisk with the name of the picture (which is case-insensitive; this name is used in the [Class definition file|.class file] to identify the picture). This lump has a header, as follows: * The low nybble of the first byte of the header specifies how many picture variants there are (from 1 to 15). * After that is a number of bytes equal to the number of picture variants; each one is a number from 1 to 255 indicating the picture size (the width and height are both equal to this number, so the pictures are always square). * After that is a number of bytes equal to half of the number of picture variants, rounding down. The first picture uses the high nybble of the first byte of the header; other than that, in this section, they use one nybble, where the low nybbles come first. These specify the encoding format. Encoding formats: * 0 = Compressed; order by y asc, x asc * 1 = Compressed; order by y asc, x desc * 2 = Compressed; order by y desc, x asc * 3 = Compressed; order by y desc, x desc * 4 = Compressed; order by x asc, y asc * 5 = Compressed; order by x desc, y asc * 6 = Compressed; order by x asc, y desc * 7 = Compressed; order by x desc, y desc * 15 = Uncompressed; order by y asc, x asc (TODO)

*.WAV

Replace the asterisk with the name of the sound. The data of this lump is a RIFF WAVE file. Z 28da40939d540f445035ad67bb25e79d