playtest mode

This commit is contained in:
2026-06-20 19:05:46 -05:00
parent e7c3ca1139
commit d32914d99d
10 changed files with 168 additions and 9 deletions
+2
View File
@@ -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),