in-game cheat/debug menu

This commit is contained in:
Llywelwyn 2023-08-13 13:43:16 +01:00
parent 7460ddee05
commit 0ef3a51e56
5 changed files with 82 additions and 8 deletions

View file

@ -484,6 +484,8 @@ pub fn player_input(gs: &mut State, ctx: &mut Rltk) -> RunState {
VirtualKeyCode::I => return RunState::ShowInventory,
VirtualKeyCode::D => return RunState::ShowDropItem,
VirtualKeyCode::R => return RunState::ShowRemoveItem,
// Other
VirtualKeyCode::Minus => return RunState::ShowCheatMenu,
VirtualKeyCode::Escape => return RunState::SaveGame,
_ => {
return RunState::AwaitingInput;