Keyboard input for moving

This commit is contained in:
2023-11-28 07:29:17 +01:00
parent 46f331aa00
commit 9ea4c3beb2
5 changed files with 84 additions and 23 deletions

View File

@@ -69,5 +69,7 @@ func (t *Terrain) Move() {
}
func (t *Terrain) ChangeDirection(direction configuration.Direction) {
t.direction = direction
if direction != configuration.PreviouslyHeld {
t.direction = direction
}
}