Upload scores?
game over play again or quit dialogue.
-display controls for a few seconds, and at pause, with reference to man
-page.
\ No newline at end of file
mvprintw(22,1,"Lvl:%3d", level);
mvprintw(22,9,"S:%3d", shieldsleft);
}
+
+void display_controls(){
+ mvprintw(1,21,"Movement: Arrow keys");
+ mvprintw(1,46,"Shoot: Z");
+ mvprintw(2,46,"Shield toggle: S");
+ mvprintw(3,46,"Smart bomb: A");
+ mvprintw(2,21,"Pause: Space");
+ mvprintw(3,21,"Quit: Q");
+ mvprintw(5,18,"See \'man curblaster\' for complete documentation");
+};
int draw_object(game_object, int);
void draw_board(int, int, int, int, int);
+void display_controls();
int super_shield = 0;
int sound = 1;
+
int main(int argc, char *argv[]){
//Initialize world
//hold until SPACE pressed
pause_game = 0;
int counter = 0;
+ int show_controls = 30;
while(pause_game!=' '){
//cbreak();
pause_game = getch();
count--;
};
+ if(show_controls>=1){
+ display_controls();
+ show_controls--;
+ };
+
//get the cursor out of the way
mvprintw(23,79,"|");
+
input = getch();
//quit
pause_game = 0;
while(pause_game!=' '){
cbreak();
+ display_controls();
mvprintw(10,25,"Paused. Press SPACE to continue.\n");
pause_game = getch();
halfdelay(1);