Skip to content

Commit

Permalink
refactoring + win screen input mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-granthon committed Dec 14, 2022
1 parent 729f357 commit 603ddda
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ fn win (root: &mut Root, board: &mut Board) {

// also draw solved board
draw_board(root, board);
label(root, "Press (almost) any key to continue", MIN_HEIGHT-2, MIN_WIDTH/2, true);

// rendering
root.flush();
Expand All @@ -536,9 +537,7 @@ fn win (root: &mut Root, board: &mut Board) {
tcod::input::Key { code: Tab, left_alt: true, .. } => false,
tcod::input::Key { code: Alt, .. } => false,
_=> true
}} {
println!("Press (almost) any key to continue");
}
}} {}

// valid key pressed, back to menu
menu(root);
Expand Down

0 comments on commit 603ddda

Please sign in to comment.