fix popup shifting

This commit is contained in:
Fabien Freling 2020-06-08 18:39:16 +02:00
parent c8bd0412f3
commit 3369c37a00
4 changed files with 23 additions and 26 deletions

View file

@ -67,7 +67,6 @@ func compute_padding(piece_size: int) -> Vector2:
return p
func _ready() -> void:
print_debug("")
$AnimationPlayer/MockPiece.visible = false
$Particles2D.emitting = false
@ -368,7 +367,6 @@ func load(saved_state) -> void:
init(saved_state["pieces"], saved_state["hidden_piece"])
func init(pieces_order: Array, hidden_piece: int) -> void:
print_debug("")
var piece_size: int = compute_piece_size()
padding = compute_padding(piece_size)
print("piece size: ", piece_size)