add blur overlay after win

This commit is contained in:
Fabien Freling 2020-01-04 19:22:11 +01:00
parent df97221788
commit ed8c3576c4
3 changed files with 35 additions and 7 deletions

View file

@ -98,19 +98,19 @@ func move_piece(direction) -> bool:
var destination: Vector2 = missing_piece
match direction:
Direction.UP:
print("up")
# print("up")
destination.y -= 1
Direction.DOWN:
destination.y += 1
print("down")
# print("down")
Direction.LEFT:
destination.x -= 1
print("left")
# print("left")
Direction.RIGHT:
destination.x += 1
print("right")
# print("right")
print(destination)
# print(destination)
if (destination.x < 0 || destination.x >= columns
|| destination.y < 0 || destination.y >= rows):
print("impossible move")
@ -127,7 +127,6 @@ func move_piece(direction) -> bool:
assert(moving_piece_track_index != -1)
var new_animation_path: String = str($AnimationPlayer.get_parent().get_path_to(moving_piece), ":position")
print("new animation path: ", new_animation_path)
moving_piece_animation.track_set_path(moving_piece_track_index, new_animation_path)
current_animation_path = new_animation_path