diff --git a/main.gd b/main.gd index 6a1a7d5..0816bcb 100644 --- a/main.gd +++ b/main.gd @@ -43,9 +43,10 @@ func _input(event: InputEvent) -> void: elif event.is_action_pressed("restart", true, true): restart() -# TODO: +# TODO: make restart undoable? func restart(): - pass + while hist.has_undo(): + hist.undo() func step(move: Vector2i): var pos := player.lpos