2023-10-01 13:40:42 +00:00
|
|
|
extends Node2D
|
|
|
|
class_name Game
|
|
|
|
|
|
|
|
|
|
|
|
@onready var button_spawner = $ButtonSpawner
|
|
|
|
|
|
|
|
|
|
|
|
func trigger_spawn():
|
|
|
|
button_spawner.spawn()
|
2023-10-01 23:36:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
signal score_changed(total: int)
|
|
|
|
|
|
|
|
func _on_score_changed(total: int):
|
|
|
|
score_changed.emit(total)
|