chore: clean up old debug prints

This commit is contained in:
2025-08-21 10:43:50 +02:00
parent 66822cbf9e
commit 9240413da7
2 changed files with 0 additions and 4 deletions

View File

@@ -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