ft (wip): tracking across boundaries

This commit is contained in:
2026-02-07 18:01:17 +01:00
parent 0f06846157
commit bc582efb90
12 changed files with 93 additions and 43 deletions

View File

@@ -1,7 +1,6 @@
extends AbstractPredator2D
# FIXME: (general) tracking across wrapping boundary
# TODO: mirroring (thought, extracct that to general function/resource?
var can_attack: bool = true
var desired_rotation: float = self.rotation
@@ -19,7 +18,7 @@ func _ready() -> void:
health = maxHealth
sprite.play("Healthy")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# smoothly rotate