decrease special mass size + add hjkl movement bindings

This commit is contained in:
2026-02-22 01:49:54 +01:00
parent 35de23e865
commit 12a96cba66
4 changed files with 13 additions and 14 deletions

View File

@ -88,19 +88,19 @@ auto InputHandler::HandleMouse() -> void {
}
auto InputHandler::HandleKeys() -> void {
if (IsKeyPressed(KEY_W)) {
if (IsKeyPressed(KEY_W) || IsKeyPressed(KEY_K)) {
if (state.current_state.MoveBlockAt(sel_x, sel_y, Direction::NOR)) {
sel_y--;
}
} else if (IsKeyPressed(KEY_A)) {
} else if (IsKeyPressed(KEY_A) || IsKeyPressed(KEY_H)) {
if (state.current_state.MoveBlockAt(sel_x, sel_y, Direction::WES)) {
sel_x--;
}
} else if (IsKeyPressed(KEY_S)) {
} else if (IsKeyPressed(KEY_S) || IsKeyPressed(KEY_J)) {
if (state.current_state.MoveBlockAt(sel_x, sel_y, Direction::SOU)) {
sel_y++;
}
} else if (IsKeyPressed(KEY_D)) {
} else if (IsKeyPressed(KEY_D) || IsKeyPressed(KEY_L)) {
if (state.current_state.MoveBlockAt(sel_x, sel_y, Direction::EAS)) {
sel_x++;
}