ft: improved npc spawning logic

This commit is contained in:
2026-01-17 13:00:54 +01:00
parent 1a532a5afb
commit e4b3919b81
10 changed files with 75 additions and 33 deletions

View File

@@ -0,0 +1,13 @@
extends SpawnManager2D
@export var cam: Camera2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
spawnRange = cam.get_viewport_rect()
_spawn_minimum()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass