inflict upon SG a bloody death

This commit is contained in:
Haze Weathers 2023-01-16 02:08:00 -05:00
parent da03fddf2d
commit 2166d4443f
4 changed files with 77 additions and 1 deletions

View file

@ -7,6 +7,7 @@ onready var climb_ray = $ClimbRay
onready var anims = $AnimationPlayer
onready var sword_sprite = $SwordSprite
onready var sword_hitbox = $SwordArea
onready var death_particles = $DeathSplatter
#Map
onready var map = get_owner()
##States
@ -244,6 +245,10 @@ func check_ladder():
#climb_ray.position.x = 4 * sprite.scale.x
func die():
var new_particles = death_particles.duplicate()
get_parent().add_child(new_particles)
new_particles.global_position = global_position
new_particles.emitting = true
position = Game.respawn_point
Game.lives -= 1
Game.play_sound(Game.a_die,Game.ac_die)