atualização 1.0/add menu

This commit is contained in:
Dazai committed 2026-05-27 09:44:13 -03:00
1 parent 0b0113fbde
commit b8442324fa
9 files changed
+125 -59

No files matched your search

+3 -7
View File
@@ -86,10 +86,11 @@ func handle_animations():
if !is_on_floor() and gravity > 2:
animator.play("Fall", 0.3)
else:
animator.play("Dead", 03)
animator.play("Dead", 0.3)
await animator.animation_finished
get_parent().get_node("Game_over").visible = true
get_tree().paused = true
get_parent().get_node("Game_over").visible = true
func apply_gravity(delta):
if not is_on_floor():
gravity += 25 * delta
@@ -124,8 +125,3 @@ func collect_coin():
func damage_player(amount: int):
health -= amount
verfy_life()
func _on_foot_area_entered(area: Area3D) -> void:
if area.name == "damagem_box" :
area.damage(foot_damage)