online multiplayer chess game (note server currently down)
Diffstat (limited to 'Globals.gd')
-rw-r--r--Globals.gd7
1 files changed, 5 insertions, 2 deletions
diff --git a/Globals.gd b/Globals.gd
index b60db79..51e0512 100644
--- a/Globals.gd
+++ b/Globals.gd
@@ -5,7 +5,7 @@ var piece_set := "california"
var board_color1: Color = Color(0.870588, 0.890196, 0.901961)
var board_color2: Color = Color(0.54902, 0.635294, 0.678431)
var spectating := false
-var playing := false
+var playing := false setget , get_playing
var chat: Chat = null
var grid: Grid = null
@@ -15,7 +15,10 @@ func reset_vars() -> void:
grid = null
chat = null
spectating = false
- playing = false
+
+
+func get_playing() -> bool:
+ return has_node("/root/Game")
func _ready() -> void: