// The Main HAM Library
#include <mygba.h>

// Graphics Includes
// Created using: gfx2gba -D -fsrc -pbg.pal -t1 bg.bmp
#include "gfx/bg.raw.c"
#include "gfx/bg.pal.c"

// Function: main()
int main()
{
    // Initialize HAMlib
    ham_Init();

    // Setup the background mode
    ham_SetBgMode(4);
	
    // Initialize the background image palette
    ham_LoadBGPal((void*)bg_Palette,256);
	
    // Load the background image
    ham_LoadBitmap((void*)bg_Bitmap);
	
    // Flip the buffer to show the image
    ham_FlipBGBuffer();

    // Infinite loop to keep the program running
    while(1) {}

    return 0;
} // End of main()