fx: food wrappign sprites
This commit is contained in:
@@ -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