in-game cheat/debug menu
This commit is contained in:
parent
7460ddee05
commit
0ef3a51e56
5 changed files with 82 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue