atualização 1.0/add menu
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user