fx: food wrappign sprites

This commit is contained in:
2026-03-01 16:46:33 +01:00
parent a11805ad30
commit 27db6d6d27
4 changed files with 13 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
extends Node
class_name FoodManager2D
var minCount: int = 20
var minCount: int = 0
var _currentCount: int = 0
var rng = RandomNumberGenerator.new()
@@ -19,10 +19,6 @@ func _ready() -> void:
spawnRange = GameManager.extent
call_deferred("_spawn_minimum")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _spawn_minimum() -> void:
while _currentCount < minCount:
_spawn_random()