Fixed more movement bugs, disabled expansions for now. Added turnendbehaviour (for bee, should add trigger by turn end signal)
This commit is contained in:
parent
5722ffab48
commit
26fec25a6e
14 changed files with 154 additions and 37 deletions
8
TurnEndBehaviour/Prefabs/TurnEndBehaviourBee.gd
Normal file
8
TurnEndBehaviour/Prefabs/TurnEndBehaviourBee.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
extends TurnEndBehaviour
|
||||
class_name TurnEndBehaviourBee
|
||||
|
||||
func trigger(tile: InsectTile, map: HexGrid, was_turn_black: bool = false) -> void:
|
||||
if map.get_empty_neighbours(tile.coordinates).size() == 0:
|
||||
# Game Over for this player
|
||||
GameEvents.game_over.emit(!tile.is_black)
|
||||
pass
|
||||
5
TurnEndBehaviour/TurnEndBehaviour.gd
Normal file
5
TurnEndBehaviour/TurnEndBehaviour.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Resource
|
||||
class_name TurnEndBehaviour
|
||||
|
||||
func trigger(tile: InsectTile, map: HexGrid, was_turn_black: bool = false) -> void:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue