gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/cross-platform/rle_map/Readme.md
1
2 RLE Decompress
3 ============
4
5 Demonstrates using rle_decompress to load a compressed tile map into vram.
6
7 ## Map Data encoding
8 The Tile Map is converted to binary format (one map entry per byte) and encoded in sequential **columns** 20 tiles high.
9 - The column wise encoding is the `-transpose` option for `png2asset`
10
11 The data is compressed using the `gbcompress` utility using the `--alg=rle` argument.
12
13 `gbcompress --alg=rle map.bin map.bin.rle`
14
15 ## Display
16 As 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.
17
18 ## Graphics
19 The tileset graphics are by GrafxKid under CC0 license:
20
21 https://opengameart.org/content/cave-tileset-4
22
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.