int smartbombs = 2;
int drawlaser = 0;
- cbreak();
- noecho();
- nonl();
+ (void)cbreak();
+ (void)noecho();
+ (void)nonl();
+ (void)leaveok(win, FALSE);
(void)keypad(win, TRUE);
(void)intrflush(stdscr, FALSE);
(void)curs_set(0);
if(input=='q'){
char quit;
clear();
- printw("Really quit (y/n)? ");
+ printw("Really quit (y/n) ? ");
refresh();
for (quit = ERR; quit != 'y' && quit != 'n'; quit = block_getch()) ;
if(quit=='y'){
pause_game = 0;
while(pause_game!=' '){
display_controls();
- mvprintw(10,25,"Paused. Press SPACE to continue.\n");
+ mvprintw(10,25,"Paused. Press SPACE to continue. ");
refresh();
pause_game = block_getch();
};
//Print goodies, getch
pause_game = 0;
while(pause_game!=' '){
- mvprintw(10,20,"Level %d Completed. Press SPACE to continue.\n", level);
+ mvprintw(10,20,"Level %d Completed. Press SPACE to continue. ", level);
refresh();
pause_game = block_getch();
};
if(level==24){
pause_game = 'f';
while(pause_game!=' '){
- mvprintw(11,21,"Victory!!!! Score: %d Press SPACE to exit\n", score);
+ mvprintw(11,21,"Victory!!!! Score: %d Press SPACE to exit. ", score);
refresh();
pause_game = block_getch();
loopvar = 1;
if(lives>=1){
pause_game = 0;
while(pause_game!=' '){
- mvprintw(10,20,"Boom. Press SPACE to continue.\n");
+ mvprintw(10,20,"Boom. Press SPACE to continue. ");
refresh();
pause_game = block_getch();
};
};
while(pause_game!='y'&&pause_game!='n'){
- mvprintw(10,20,"GAME OVER. Score:%d Play again(y/n)?\n", score);
if(score>hscore){
mvprintw(11,20,"High Score: %s", outstring);
};
+ mvprintw(10,20,"GAME OVER. Score:%d Play again (y/n) ? ", score);
refresh();
pause_game = block_getch();
};