home *** CD-ROM | disk | FTP | other *** search
/ Ultimate Game Collection / XULTI.ISO / 420 / cdnscrn.c < prev    next >
C/C++ Source or Header  |  1996-04-05  |  1KB  |  42 lines

  1. /***************************************************************************
  2.                             COUNTDOWN SCREEN    
  3. ****************************************************************************/
  4.  
  5. #include <dos.h>
  6. #include <graphics.h>
  7. #include "cdnscrn.h"
  8. //#include "scrn2.h"
  9. //#include "oscr.h"
  10. //#include "wak.h"
  11.  
  12. void countdown_screen()
  13. {
  14.    char L[6][2] = { "5", "4", "3", "2", "1", "0" };
  15.    register int index;
  16.  
  17.       graphics_setup( WHITE );
  18.  
  19.       settextstyle( SANS_SERIF_FONT, HORIZ_DIR, BIGNO_SIZE );
  20.       settextjustify( CENTER_TEXT, CENTER_TEXT );
  21.       setcolor( NO_COLOR );
  22.  
  23.       for( index = 0; index < 6; index++ )
  24.            {
  25.            circle( CX, CY, RADIUS );
  26.            line( L1X1, L1Y1, L1X2, L1Y2 );
  27.            line( L2X1, L2Y1, L2X2, L2Y2 );
  28.            line( L3X1, L3Y1, L3X2, L3Y2 );
  29.            line( L4X1, L4Y1, L4X2, L4Y2 );
  30.            outtextxy( NOX, NOY, L[index] );
  31.            delay( PAUSEB );
  32.            clearviewport();
  33.            }
  34.  
  35.       closegraph();
  36.        
  37.  
  38.       return;
  39. }
  40.  
  41.  
  42.