sync
This commit is contained in:
parent
6d75dd22a0
commit
3ca455a5b9
18 changed files with 315 additions and 27 deletions
5
quare.gd
5
quare.gd
|
@ -4,7 +4,10 @@ func _ready():
|
|||
$AnimatedSprite.play("gif")
|
||||
|
||||
func destroy():
|
||||
var timer = Timer.new()
|
||||
if not is_queued_for_deletion():
|
||||
var explosion = load("res://explosion.tscn").instantiate()
|
||||
$"/root/Node2D".add_child(explosion)
|
||||
explosion.global_position = global_position
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
$"../Player".aquire_quare()
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue