ft (Wip): FSM behaviour prey

This commit is contained in:
2026-01-23 10:48:14 +01:00
parent 0b9b1e75d4
commit c11afd9ddd
24 changed files with 154 additions and 54 deletions

View File

@@ -0,0 +1,17 @@
extends NucleotidePreyState
@onready var timer = $Timer
var dir: float = 0.0
func enter(previous_state_path: String, data := {}) -> void:
timer.start(randi() % 5)
dir = randi() % 360
func physics_update(_delta: float) -> void:
# TODO: move in direction of dir
pass
func _on_timer_timeout() -> void:
dir = randi() % 360
timer.start(randi() % 5)