summaryrefslogtreecommitdiff
path: root/Scenes/Global.gd
blob: 09c935a382e3618b327a9874356c2b7df6d11281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
onready var active_crystals = 0 setget set_crystals
onready var max_crystals = 0

signal update_ui

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

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

func set_crystals(c):
	active_crystals = c
	emit_signal("update_ui")