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
|
|
@ -10,7 +10,8 @@ func select_targets(source_pos: Vector4i, map: HexGrid): # -> Array[InsectTile]:
|
|||
var tile = map.get_tile(neighbour)
|
||||
if tile != null:
|
||||
# TODO: Find better way to see what tile we have...
|
||||
if not tile.resource.movement_behaviour is MovementBehaviourMosquito:
|
||||
possible_action_targets.push_back(tile)
|
||||
pass
|
||||
#if not tile.resource.movement_behaviour is MovementBehaviourMosquito:
|
||||
# possible_action_targets.push_back(tile)
|
||||
|
||||
GameEvents.insect_tiles_selected_for_action.emit(source_pos, possible_action_targets)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue