#include int main() { // Initialize Allegro. allegro_init(); // Set the resolution to 640 by 480 with SAFE autodetection. set_gfx_mode(GFX_SAFE, 1280, 1024, 0, 0); // Installing the keyboard handler. install_keyboard(); // Printing text to the screen. textout(screen, font, "Hello World!", 1, 1, 10); textout(screen, font, "Press ESCape to quit.", 1, 12, 11); // Looping until the ESCape key is pressed. while(! key[KEY_ESC]) poll_keyboard(); // This shouldn't be necessary in Windows. // Exit program. allegro_exit(); return 0; } // Some Allegro magic to deal with WinMain(). END_OF_MAIN();