/** * @file main.c * @brief Showing an image exported with Image2GB (GIMP plugin) on the Game Boy. */ #include #include "snake_banked.h" //#include "snake_nonbanked.h" void main(void) { // Switch to the ROM bank where the asset is (if needed). SWITCH_ROM(BANK(BACKGROUND_SNAKE)); // Load the tile data at the start of VRAM. set_bkg_data(0U, BACKGROUND_SNAKE_TILES, BackgroundDataSnake); // Load and set the tile map at screen origin. set_bkg_tiles(0U, 0U, BACKGROUND_SNAKE_SIZE_X, BACKGROUND_SNAKE_SIZE_Y, BackgroundMapSnake); // Enable the background layer. SHOW_BKG; // Turn the display on. DISPLAY_ON; }