playtest mode
This commit is contained in:
@@ -86,6 +86,8 @@ pub(crate) fn handle_board_input(
|
||||
) -> bool {
|
||||
match event {
|
||||
Event::Key(key) => match key.code {
|
||||
// During a playtest, Esc returns to the editor instead of opening the menu.
|
||||
KeyCode::Esc if ui.suspended_editor.is_some() => ui.exit_playtest = true,
|
||||
KeyCode::Esc => ui.open_menu(pause_menu_items()),
|
||||
KeyCode::Up => try_move_with_transition(game, ui, Direction::North),
|
||||
KeyCode::Down => try_move_with_transition(game, ui, Direction::South),
|
||||
|
||||
Reference in New Issue
Block a user