Improve aim assist target stickiness

This commit is contained in:
Loïc Wisniewski 2026-09-02 17:15:12 +02:00
commit 3975959017
5 changed files with 122 additions and 64 deletions

View file

@ -30,6 +30,10 @@ var max_hp: int
func _ready() -> void:
add_to_group("enemies")
# Weapons discover anything the player may deliberately aim at through one
# compositional contract. Asteroids implement the same contract without the
# aim-assist code having to know either concrete type (#181).
add_to_group("player_aim_targets")
definition = ENEMY_DEFINITIONS.get_definition(enemy_id)
speed = definition.speed
acceleration = definition.acceleration