Initial spawn delay
This commit is contained in:
parent
941912d7f1
commit
161f87da75
2 changed files with 28 additions and 9 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue