Gameover menu

This commit is contained in:
Felipe M 2021-05-23 14:00:04 +02:00
parent 175bd597c5
commit b26c4a4be0
Signed by: fmartingr
GPG key ID: 716BC147715E716F
7 changed files with 80 additions and 1 deletions

View file

@ -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):

View file

@ -124,6 +124,7 @@ tracks/1/keys = {
[node name="Player" type="KinematicBody2D" groups=[
"Persists",
"Player",
]]
collision_mask = 2
script = ExtResource( 2 )