ft (Wip): FSM behaviour prey

This commit is contained in:
djaidjai committed 2026-01-23 10:48:14 +01:00
1 parent 0b9b1e75d4
commit c11afd9ddd
24 files changed
+154 -54

No files matched your search

+4
View File
@@ -1,6 +1,10 @@
extends NPC2D
class_name AbstractPrey2D
enum States {IDLE, FORAGING, FLEEING}
var state = States.IDLE
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
@@ -1,11 +1,10 @@
extends Node
class_name SpawnManager2D
#var scene = preload("res://molecular/nucleotide_prey.tscn")
@export var scene: PackedScene
@export var minCount = 1
@export var maxCount = 2
@export var spawnRange: Rect2
@export var spawnRange: Rect2 = Rect2(0, 0, 0, 0)
var _currentCount = 0
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.