/**********************************************************\ * Bugs : a bit-mapped arcade game for the AT&T UNIX PC. * * * * By : Hans Jespersen * * * \**********************************************************/ #include "bugs.h" main(argc,argv) int argc; char *argv[]; { char c; if( argc != 1 ) { fprintf(stderr,"\nusage: bugs\n"); fprintf(stderr," There aint no arguments dummy, just type 'bugs'\n"); exit(-1); } defsprites(); /* Define the little critters */ wininit(); /* Set up the full screen window */ beepflag = FALSE; while( c != QUIT ){ score = 0; printscore(); chance = 41; level = 0; for(men = 2; men >= 0;) { initscreen( level ); /* Display initial screen */ playgame(); } mvaddstr(5,35,"Hi Scores"); CheckHiScore( score ); DisplayHiScores(); wgoto( wn, 23, 21); printf( "Hit <%c> to quit, to continue." ,QUIT ); flushinp(); c = '\0'; while ( (c != QUIT) && (c != ' ') ) c = getchar(); clear(); } cleanup(); }