space now increments height

This commit is contained in:
2024-11-05 16:14:11 +02:00
parent 8686f0872a
commit 0f4be9aa0c

View File

@@ -36,7 +36,8 @@ fn move_player_from_input(
input: Res<ButtonInput<KeyCode>>, input: Res<ButtonInput<KeyCode>>,
level_walls: Res<LevelWalls>, level_walls: Res<LevelWalls>,
) { ) {
let movement_direction = if input.just_pressed(KeyCode::KeyW) { let movement_direction =
if input.just_pressed(KeyCode::KeyW) || input.just_pressed(KeyCode::Space) {
GridCoords::new(0, 1) GridCoords::new(0, 1)
} else if input.just_pressed(KeyCode::KeyA) { } else if input.just_pressed(KeyCode::KeyA) {
GridCoords::new(-1, 0) GridCoords::new(-1, 0)