Plant spawn

This commit is contained in:
Rendo 2025-08-03 18:34:54 +05:00
commit 941912d7f1
25 changed files with 281 additions and 40 deletions

View file

@ -0,0 +1,5 @@
extends Button
func _pressed() -> void:
LevelEventBus.state_advance_requested.emit()

View file

@ -0,0 +1 @@
uid://60lwfjb634kd

View file

@ -0,0 +1,14 @@
extends Node
func _ready() -> void:
LevelEventBus.hotbar_packets_update.connect(on_hotbar_updated)
func on_hotbar_updated(hotbar : Array[SeedpacketResource]):
for child in get_children():
child.queue_free()
for seedpacket in hotbar:
var packet = preload("res://scenes/gui/seedpacket.tscn").instantiate()
packet.held_resource = seedpacket
add_child(packet)
packet.set_handler(HotbarHandler.new(packet))

View file

@ -0,0 +1 @@
uid://cbrhnb4tp4pem