fx: food wrappign sprites

This commit is contained in:
djaidjai committed 2026-03-01 16:46:33 +01:00
1 parent a11805ad30
commit 27db6d6d27
4 files changed
+13 -20

No files matched your search

@@ -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()
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.