add weapon switcher; todo: ammo

This commit is contained in:
Michael Campbell 2026-02-19 01:09:36 -05:00
parent 045faf2333
commit 53b8cf6118
5 changed files with 33 additions and 4 deletions

View file

@ -16,6 +16,7 @@ func hit(projectile: PlayerProjectile, _damage: float) -> bool:
if weak_point_hit:
var explosion := preload("res://player/explosion/explosion.tscn").instantiate()
explosion.position = parent.position
explosion.scale = Vector3.ONE * 1.5
parent.add_sibling(explosion)
var label_vfx := preload("res://utils/label_vfx/label_vfx.tscn").instantiate()