inflict upon SG a bloody death
This commit is contained in:
parent
da03fddf2d
commit
2166d4443f
4 changed files with 77 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue