summaryrefslogtreecommitdiff
path: root/Scenes/Global.gd
blob: 1a4c0207ecc694f5b309b0d5f34be047f2ab017f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extends Node

onready var STARTING_TURNS = 20
onready var BONUS_TURNS_STAGE_FINISH = 10

onready var turns = STARTING_TURNS setget set_turns
onready var current_stage = 0 setget set_stage

signal update_ui

func set_turns(t):
	turns = t
	emit_signal("update_ui")

func set_stage(s):
	current_stage = s
	emit_signal("update_ui")