This commit is contained in:
Victor Turgeon
2022-10-11 21:53:02 -04:00
5 changed files with 26 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ onready var hitbox = $HitBox/CollisionShape
onready var particles = $CPUParticles
onready var death_timer = $DeathTimer
onready var mesh = $MeshInstance
onready var Explosion = $Explosion
func _ready():
var rng = RandomNumberGenerator.new()
@@ -42,6 +43,7 @@ func get_slapped(slap_level, slap_kill, slap_vector):
func get_shot(hitboxOwner):
hitboxOwner.die()
Explosion.play()
die()
func die():