chore: run gdformat
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user