restart functionality

This commit is contained in:
mehbark 2025-05-02 22:31:55 -04:00
parent 350717a4ec
commit c29bce724f

View file

@ -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