Initial spawn delay

This commit is contained in:
Rendo 2025-08-03 18:51:27 +05:00
commit 161f87da75
2 changed files with 28 additions and 9 deletions

View file

@ -1,12 +1,10 @@
extends Node
const SEEDPACKET_SCENE := preload("res://scenes/gui/seedpacket.tscn")
func _ready() -> void:
var plants = GameRegistry.load_resources("res://resources/")
for plant in plants:
var seedpacket = SEEDPACKET_SCENE.instantiate()
var seedpacket = Seedpacket.PACKED_SCENE.instantiate()
seedpacket.held_resource = plant
add_child(seedpacket)