2024-04-16 20:29:45 -04:00
|
|
|
extends StaticBody2D
|
|
|
|
|
2024-04-18 15:02:37 -04:00
|
|
|
func _ready():
|
2024-04-18 15:30:40 -04:00
|
|
|
$AnimatedSprite.play("gif")
|
2024-04-16 20:29:45 -04:00
|
|
|
|
|
|
|
func destroy():
|
|
|
|
if not is_queued_for_deletion():
|
2024-04-24 14:57:29 -04:00
|
|
|
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
|
2024-04-16 20:29:45 -04:00
|
|
|
$"../Player".aquire_quare()
|
|
|
|
queue_free()
|