Gameover menu
This commit is contained in:
parent
175bd597c5
commit
b26c4a4be0
7 changed files with 80 additions and 1 deletions
|
@ -43,6 +43,7 @@ onready var powerupDetector = $PowerupDetector
|
|||
onready var cameraFollow = $CameraFollow
|
||||
|
||||
signal hit_door(door)
|
||||
signal died
|
||||
|
||||
|
||||
func set_invincible(value):
|
||||
|
@ -271,6 +272,7 @@ func _on_Hurtbox_hit(damage):
|
|||
SaverLoader.custom_data.health = PlayerStats.health
|
||||
|
||||
func _on_died():
|
||||
emit_signal("died")
|
||||
queue_free()
|
||||
|
||||
func _on_PowerupDetector_area_entered(area):
|
||||
|
|
|
@ -124,6 +124,7 @@ tracks/1/keys = {
|
|||
|
||||
[node name="Player" type="KinematicBody2D" groups=[
|
||||
"Persists",
|
||||
"Player",
|
||||
]]
|
||||
collision_mask = 2
|
||||
script = ExtResource( 2 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue