add weapon switcher; todo: ammo
This commit is contained in:
parent
045faf2333
commit
53b8cf6118
5 changed files with 33 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue