chore: run gdformat

This commit is contained in:
2025-08-20 04:47:49 +02:00
parent 702080af59
commit c7c4eb574e
12 changed files with 47 additions and 13 deletions

View File

@@ -17,6 +17,7 @@ var is_dead: bool = false
var _xp_orb = preload("res://scenes/xp_orb.tscn")
func _ready() -> void:
move_speed = default_move_speed
max_health = default_max_health
@@ -65,12 +66,14 @@ func die():
animation_player.play("die")
animation_player.animation_finished.connect(_on_die_anim_finished)
func drop_xp_orb() -> void:
var orb: XPOrb = _xp_orb.instantiate()
orb.value = 5
orb.position = position
get_parent().add_child(orb)
func cheer_anim():
if not animation_player.is_playing():
animation_player.play("jump")