Refactoring UI and Tile logic (to allow for Hotseat/LAN/Online multiplayer)

This commit is contained in:
Sch1nken 2024-03-19 23:16:29 +01:00
parent 1ed0ec226d
commit d688eaf9c6
17 changed files with 591 additions and 17 deletions

View file

@ -2,16 +2,21 @@ extends Node
const WEBSOCKET_ENDPOINT: String = "wss://dev.bytesandpieces.xyz:9088"
var is_player_black: bool = true
var is_hot_seat: bool = false
var is_player_black: bool = false
var debug: bool = false
var allow_selecting_in_stack: bool = false
var lobby_code: String = ""
var has_bee_been_placed: bool = false
var bees_placed: Dictionary = {}
var disconnect_reason: String = ""
func reset() -> void:
is_hot_seat = false
has_bee_been_placed = false
disconnect_reason = ""
bees_placed = {}

View file

@ -20,3 +20,6 @@ signal turn_ended(turn_num, map)
signal game_started
signal game_over(black_lost, white_lost)
# Menu
signal switch_to_menu(from, to)