mode0-4bpp
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
This demo showcases basic mode0 usage in 4bpp. A simplier image spiral.png which is composed of two tiles all white and all blue. 1. Each tile is converted into 16 bit color. 2. 16 Palette banks are formed the best way possible 3. nin10kit builds an optimized tileset from the given map 4. The map data is then formed from matching each tile against the tileset. This demo 1) Simply loads the generated palette banks into the graphics palette at 0x5000000 2) Stores the tileset (tiles graphics) in character block 0 3) Stores the map data in screen block 28 4) Sets up REG_DISPCNT to enable background 0 5) Sets the background 0 control register to point to the tile and map data.