// ____________________________ // ██▀▀█▀▀██▀▀▀▀▀▀▀█▀▀█ │ ▄▄▄ ▄▄ // ██ ▀ █▄ ▀██▄ ▀ ▄█ ▄▀▀ █ │ ▀█▄ ▄▀██ ▄█▄█ ██▀▄ ██ ▄███ // █ █ █ ▀▀ ▄█ █ █ ▀▄█ █▄ │ ▄▄█▀ ▀▄██ ██ █ ██▀ ▀█▄ ▀█▄▄ // ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀────────┘ ▀▀ // Program template //───────────────────────────────────────────────────────────────────────────── //============================================================================= // INCLUDES //============================================================================= #include "msxgl.h" //============================================================================= // DEFINES //============================================================================= // Library's logo #define MSX_GL "\x01\x02\x03\x04\x05\x06" //============================================================================= // READ-ONLY DATA //============================================================================= // Fonts data #include "font/font_mgl_sample6.h" // Animation characters const u8 g_ChrAnim[] = { '-', '/', '|', '\\' }; //============================================================================= // MAIN LOOP //============================================================================= //----------------------------------------------------------------------------- // Program entry point void main() { VDP_SetMode(VDP_MODE_SCREEN5); VDP_SetColor(COLOR_BLACK); VDP_EnableVBlank(TRUE); VDP_ClearVRAM(); Print_SetBitmapFont(g_Font_MGL_Sample6); Print_SetColor(COLOR_WHITE, COLOR_BLACK); Print_SetPosition(0, 0); Print_DrawText(MSX_GL" The MSX Game Library"); u8 count = 0; while (!Keyboard_IsKeyPressed(KEY_ESC)) { Halt(); // Wait V-Blank Print_SetPosition(255-8, 0); Print_DrawChar(g_ChrAnim[count++ % 4]); } BIOS_Exit(0); }