drunkards walk

This commit is contained in:
Llywelwyn 2023-07-15 23:19:46 +01:00
parent d96d4881d5
commit 363ff4c0a3
5 changed files with 280 additions and 44 deletions

View file

@ -122,7 +122,7 @@ fn get_item(ecs: &mut World) -> bool {
pub fn player_input(gs: &mut State, ctx: &mut Rltk) -> RunState {
// Player movement
let mut result = false;
let result;
match ctx.key {
None => return RunState::AwaitingInput,
Some(key) => match key {