ft: improved npc spawning logic
This commit is contained in:
1 parent
1a532a5afb
commit
e4b3919b81
10 files changed
+75
-33
No files matched your search
@@ -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
|
||||