sync
This commit is contained in:
parent
6d75dd22a0
commit
3ca455a5b9
18 changed files with 315 additions and 27 deletions
8
riangle.gd
Normal file
8
riangle.gd
Normal file
|
@ -0,0 +1,8 @@
|
|||
extends StaticBody2D
|
||||
|
||||
func destroy():
|
||||
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
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue