restart functionality
This commit is contained in:
parent
350717a4ec
commit
c29bce724f
1 changed files with 3 additions and 2 deletions
5
main.gd
5
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue