home *** CD-ROM | disk | FTP | other *** search
/ Game Programming - All in One (3rd Edition) / game_prog_all_in_one_3rd_ed.iso / sources / chapter02 / Test_VC60 / main.cpp next >
Encoding:
C/C++ Source or Header  |  2006-08-17  |  363 b   |  14 lines

  1. #include <allegro.h>
  2.  
  3. int main(void)  { 
  4.     allegro_init();
  5.     set_gfx_mode(GFX_SAFE, 640, 480, 0, 0);
  6.     install_keyboard();
  7.     textout_ex(screen, font, "Hello World!", 1, 1, 10, -1);
  8.     textout_ex(screen, font, "Press ESCape to quit.", 1, 12, 11, -1);
  9.     while(! key[KEY_ESC]) { };
  10.     allegro_exit();
  11.     return 0;     
  12. }     
  13. END_OF_MAIN()
  14.