vim keys fix
This commit is contained in:
parent
491581c848
commit
d41ef0f8dc
2 changed files with 6 additions and 3 deletions
|
|
@ -54,7 +54,10 @@ pub fn delete_the_dead(ecs: &mut World) {
|
||||||
}
|
}
|
||||||
dead.push(entity)
|
dead.push(entity)
|
||||||
}
|
}
|
||||||
Some(_) => log.entries.push(format!("YOU DIED!")),
|
Some(_) => {
|
||||||
|
// This is where the GameOver state will go eventully. But currently
|
||||||
|
// it's easier to just keep the game going for the sake of testing.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,8 @@ pub fn player_input(gs: &mut State, ctx: &mut Rltk) -> RunState {
|
||||||
try_move_player(0, 1, &mut gs.ecs);
|
try_move_player(0, 1, &mut gs.ecs);
|
||||||
}
|
}
|
||||||
// Diagonals
|
// Diagonals
|
||||||
VirtualKeyCode::Numpad9 | VirtualKeyCode::Y => try_move_player(1, -1, &mut gs.ecs),
|
VirtualKeyCode::Numpad9 | VirtualKeyCode::U => try_move_player(1, -1, &mut gs.ecs),
|
||||||
VirtualKeyCode::Numpad7 | VirtualKeyCode::U => try_move_player(-1, -1, &mut gs.ecs),
|
VirtualKeyCode::Numpad7 | VirtualKeyCode::Y => try_move_player(-1, -1, &mut gs.ecs),
|
||||||
VirtualKeyCode::Numpad3 | VirtualKeyCode::N => try_move_player(1, 1, &mut gs.ecs),
|
VirtualKeyCode::Numpad3 | VirtualKeyCode::N => try_move_player(1, 1, &mut gs.ecs),
|
||||||
VirtualKeyCode::Numpad1 | VirtualKeyCode::B => try_move_player(-1, 1, &mut gs.ecs),
|
VirtualKeyCode::Numpad1 | VirtualKeyCode::B => try_move_player(-1, 1, &mut gs.ecs),
|
||||||
// Depth
|
// Depth
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue