1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 07:44:17 +00:00
swear-jar/game/game.gd
2023-10-02 01:36:23 +02:00

15 lines
225 B
GDScript

extends Node2D
class_name Game
@onready var button_spawner = $ButtonSpawner
func trigger_spawn():
button_spawner.spawn()
signal score_changed(total: int)
func _on_score_changed(total: int):
score_changed.emit(total)