diff options
Diffstat (limited to 'Scenes/Global.gd')
-rw-r--r-- | Scenes/Global.gd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Scenes/Global.gd b/Scenes/Global.gd new file mode 100644 index 0000000..4bef11b --- /dev/null +++ b/Scenes/Global.gd @@ -0,0 +1,12 @@ +extends Node + +onready var STARTING_TURNS = 20 +onready var BONUS_TURNS_STAGE_FINISH = 10 + +onready var turns = STARTING_TURNS setget set_turns + +signal update_ui + +func set_turns(t): + turns = t + emit_signal("update_ui") |