chore: clean up old debug prints
This commit is contained in:
@@ -26,7 +26,6 @@ func _process(delta: float) -> void:
|
||||
|
||||
|
||||
func _on_player_hp_change(hp: float, max_hp: float):
|
||||
print_debug("got sig")
|
||||
var percent_hp = hp / max_hp * 100
|
||||
if percent_hp < 40:
|
||||
low_hp_indicator.visible = true
|
||||
|
@@ -90,15 +90,12 @@ func death_animation(delta: float):
|
||||
func get_taunted():
|
||||
var taunting_enemies: Array[EnemyBase] = []
|
||||
for body in get_tree().get_nodes_in_group(GlobalConst.GROUP_ENEMY):
|
||||
print_debug("starting taunt: %s" % global_position.distance_to(body.global_position))
|
||||
if global_position.distance_to(body.global_position) < 1000.0:
|
||||
taunting_enemies.append(body)
|
||||
print_debug("getting taunted by %s enemies" % len(taunting_enemies))
|
||||
for i in range(taunting_enemies.size()):
|
||||
var angle = (TAU / taunting_enemies.size()) * i
|
||||
var target_pos = Vector2(cos(angle), sin(angle)) * 50
|
||||
var new_target = Marker2D.new()
|
||||
print_debug("getting taunted by %s" % taunting_enemies[i])
|
||||
new_target.position = target_pos
|
||||
add_child(new_target)
|
||||
taunting_enemies[i].target = new_target
|
||||
|
Reference in New Issue
Block a user