Refactored to allow hotseat and multiplayer. TODO: Create interface class for webrtc/enet multiplayer
This commit is contained in:
parent
d688eaf9c6
commit
5fe8f22ccb
27 changed files with 798 additions and 135 deletions
|
|
@ -13,8 +13,10 @@ func _on_insect_tile_created(tile: InsectTile, pos: Vector4i) -> void:
|
|||
if is_same(BEE, tile.resource):
|
||||
bees.push_back(tile)
|
||||
|
||||
if tile.is_black == GameData.is_player_black:
|
||||
GameData.has_bee_been_placed = true
|
||||
GameData.bees_placed[tile.is_black] = tile
|
||||
|
||||
#if tile.is_black == GameData.is_player_black:
|
||||
# GameData.has_bee_been_placed = true
|
||||
|
||||
func _on_turn_ended(turn_num: int, map: HexGrid) -> void:
|
||||
var black_lost: bool = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue