Sprites

Back to file listing =Sprites= The file ic0_9.wlf contains 10 sprites the game can use to draw it on top of a map tile. This includes all the monster images, the player image, the loot bag and the rad symbol.

The file format is like the one of the masks.wlf file but with the difference that each sprite has four bitmasks. The first bit mask contains the red component bits, the second mask contains the green component bits, the third mask contains the blue component bits and the forth mask contains the intensity component bits. So if all four layers are merged you get a standard EGA16 color image.



To draw a sprite on top of a map tile the game needs to know which part is transparent and which is not. For this the game uses the masks.wlf file which contains the transparency masks for these 10 sprites.

Technical
The Sprites are loaded as part of the game initialisation into Seg003:0x420 and occupy 0x500 bytes. They are not decrypted when read from disk.