new input system, add pausing
All checks were successful
CI / build (push) Successful in 2m52s

This commit is contained in:
Ultrablob 2025-02-07 13:37:10 -05:00
parent 4a31db6411
commit 88c05bbd8c
21 changed files with 194 additions and 75 deletions

View file

@ -1,10 +1,21 @@
extends StaticBody2D
var dying = false
# Called when the node enters the scene tree for the first time.
func _ready():
$Turret.target = $"../Player"
#print($Turret.target)
func destroy():
if dying:
return
dying = true
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()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):