@ -10,6 +10,8 @@ void drawScore(){
mvwprintw ( scoreWin , 2 , 1 , " Ammo: %d/%d:%d " , allEntities [ 0 ] . weapons [ allEntities [ 0 ] . curWeapon ] . curCapacity , allEntities [ 0 ] . weapons [ allEntities [ 0 ] . curWeapon ] . maxCapacity , allEntities [ 0 ] . weapons [ allEntities [ 0 ] . curWeapon ] . curMags ) ;
mvwprintw ( scoreWin , 3 , 1 , " Zombies Killed: %d " , allEntities [ 0 ] . killCount ) ;
mvwprintw ( scoreWin , 4 , 1 , " Projectiles Fired: %d " , allEntities [ 0 ] . projectilesFired ) ;
mvwprintw ( scoreWin , 5 , 1 , " Zombies Modifier: %d " , zombieModifier ) ;
mvwprintw ( scoreWin , 6 , 1 , " Item Modifier: %d " , itemModifier ) ;
wnoutrefresh ( scoreWin ) ;
}
@ -42,7 +44,7 @@ void drawGameOverWin(){
mvwprintw ( gameOverWin , 1 , ( gameOverWinCols - strlen ( " GAME OVER " ) ) / 2 , " %s " , " GAME OVER " ) ;
mvwprintw ( gameOverWin , ( gameOverWinRows / 2 ) - 1 , 1 , " Shots Fired: %i " , allEntities [ 0 ] . projectilesFired ) ;
mvwprintw ( gameOverWin , ( gameOverWinRows / 2 ) , 1 , " Zombies Killed: %i " , allEntities [ 0 ] . killCount ) ;
mvwprintw ( gameOverWin , ( gameOverWinRows ) - 2 , ( gameOverWinCols - strlen ( " Press 'q' to quit " ) ) / 2 , " %s " , " Press 'q' to quit " ) ;
mvwprintw ( gameOverWin , ( gameOverWinRows ) - 2 , ( gameOverWinCols - strlen ( " Press 'q' to quit or 'r' to restart " ) ) / 2 , " %s " , " Press 'q' to quit or 'r' to restar t " ) ;
nodelay ( stdscr , FALSE ) ;
wnoutrefresh ( gameOverWin ) ;
doupdate ( ) ;
@ -52,5 +54,8 @@ void drawGameOverWin(){
endwin ( ) ;
exit ( 0 ) ;
}
if ( input = = ' r ' | | input = = ' R ' ) {
restartGame ( ) ;
}
}
}