The Making of Virus LQP-79
Code by Fuopy - JO3RI
Sprites by Justin Cry, Tiles by JO3RI
Banner & titleScreens by Castpixel
thanks to the beta testers:
With each of our blocks we can create a map. We decided to have 8x4 blocks for each map. So the actual pixel size is 512x256 or 4 arduboy screens wide and tale. Altough 32 bytes for a map isn't that much, the blocks are even taking more space, we decided to compress them. When we were finishing up the game, we needed to free like 200 bytes to get all levels in. 16 bytes at 32 bytes is 512 bytes, if we could get that into half, we were good to go.
Now we have only 16 blocks, 0 to F, if you look closley at hexadecimal numbers (0x0F) you'll notice we can have two times an F: 0xFF or any other combination. So we decided to put a block in the left part and the next one in the right part of a byte.
I agree, this is the biggest gain in bytes, but I wanted to explain the principles of double RLE compression:tiles in blocks in maps and point you to the possiblitie of storing data together in 1 byte. If you ever decide to create your own maps, you'll be needing this ;)
The biggest gain in bytes in this game, was clever use of masks, but that I'll explain with an other game.