sync
This commit is contained in:
parent
f7d034147d
commit
57e3151019
15 changed files with 92 additions and 46 deletions
|
@ -1,6 +1,11 @@
|
|||
extends PhysicsBody2D
|
||||
|
||||
var dying = false
|
||||
|
||||
func destroy():
|
||||
if dying:
|
||||
return
|
||||
dying = true
|
||||
var explosion = load("res://explosion.tscn").instantiate()
|
||||
$"/root/Node2D".add_child(explosion)
|
||||
explosion.global_position = global_position
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue