6GRAPHICS ASSET MANAGEMENT
This chapter covers what you need to know to display custom graphics on the DMG, from converting image files to filling the VRAM with tiles and tilemap data.
First, you’ll learn how to convert PNG files to DMG-compatible graphics, using either the RGBDS toolchain or a custom tool I created for this book. Then, we’ll walk through a sample demonstrating how to add converted graphics data to a ROM. Finally, you’ll see how to copy the graphics data from the ROM to VRAM so it can be displayed on the DMG LCD.
The graphics assets in this book are all available in the assets folder of the GitHub repository. They are four-color PNG files used as tilesets (groups of tiles) or tilemaps. The tileset PNG files for this book are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access