cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

Readme.md (723B)


      1
      2RLE Decompress
      3============
      4
      5Demonstrates using rle_decompress to load a compressed tile map into vram.
      6
      7## Map Data encoding
      8The Tile Map is exported in binary format (one map entry per byte) and encoded in sequential **columns** 20 tiles high.
      9
     10The data is compressed using the `gbcompress` utility using the `--alg=rle` argument.
     11
     12`gbcompress --alg=rle map.bin map.bin.rle`
     13
     14## Display
     15As the program scrolls, a new column is drawn once for every 8 pixels scrolled. The Tile Map data is decoded 20 tiles at a time (column height) and rendered to the next (just barely off-screen) column on the right.
     16
     17## Graphics
     18The tileset graphics are by GrafxKid under CC0 license:
     19
     20https://opengameart.org/content/cave-tileset-4
     21