My RLE idea is to store 2x2 meta tiles for my backgrounds. The idea I came up with is to have the left nibble
be the repeat number and the right nibble to be the tile number. Instead of the right nibble being 0 - F, it would
be 0-9. A-F in the right nibble would be a bank switch for the 10 tileset.
Of course, I will probably want to draw vertical columns because it will be a side scroller.
The reason for this post is that I'm not sure if I am taking the correct approach here. I have seen links to packBits
elsewhere, but I haven't tested yet.
The goal is to get the most compressed nametables possible because I am running NROM for now.
Thanks,
be the repeat number and the right nibble to be the tile number. Instead of the right nibble being 0 - F, it would
be 0-9. A-F in the right nibble would be a bank switch for the 10 tileset.
Code:
bg:
.db $0A ; bank A
.db $F3 ; draw tile number 3 from bank A 16 times
.db $0B ; bank B
.db $82 ; draw tile number 2 from bank B 8 times
.db $83 ; draw tile nubmer 3 from bank B 8 times
.db $0A ; bank A
.db $F3 ; draw tile number 3 from bank A 16 times
.db $0B ; bank B
.db $82 ; draw tile number 2 from bank B 8 times
.db $83 ; draw tile nubmer 3 from bank B 8 times
Of course, I will probably want to draw vertical columns because it will be a side scroller.
The reason for this post is that I'm not sure if I am taking the correct approach here. I have seen links to packBits
elsewhere, but I haven't tested yet.
The goal is to get the most compressed nametables possible because I am running NROM for now.
Thanks,