Skip to content

Commit

Permalink
Added delay
Browse files Browse the repository at this point in the history
  • Loading branch information
H3rmt committed Dec 20, 2023
1 parent 7dd8eb5 commit ae66a0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ enum ResCodes initializeLevel(struct Board *board) {
placeItem(board, 19, 9, BC_FOOD_1, SYMBOL_FOOD_2, COLP_FOOD_2);
placeItem(board, 17, 16, BC_FOOD_1, SYMBOL_FOOD_3, COLP_FOOD_3);
placeItem(board, 22, 33, BC_FOOD_1, SYMBOL_FOOD_3, COLP_FOOD_3);
placeItem(board, 15, 37, BC_FOOD_1, SYMBOL_FOOD_3, COLP_FOOD_3);
placeItem(board, 15, 36, BC_FOOD_1, SYMBOL_FOOD_3, COLP_FOOD_3);
placeItem(board, 7, 56, BC_FOOD_1, SYMBOL_FOOD_3, COLP_FOOD_3);

// Initialize number of food items
// Attention: must match number of items placed on the board above
board->food_items = 10;
return RES_OK;
}
}
2 changes: 2 additions & 0 deletions messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ int showDialog(char *prompt1, char *prompt2) {
}
refresh();

napms(1000);

nodelay(stdscr, FALSE);
const int ch = getch(); // Wait for user to press an arbitrary key
nodelay(stdscr, TRUE);
Expand Down

0 comments on commit ae66a0e

Please sign in to comment.