valid tile placement implemented

This commit is contained in:
Sch1nken 2024-03-06 00:07:26 +01:00
parent cabc35394f
commit aa4343309c
40 changed files with 173 additions and 201 deletions

View file

@ -175,9 +175,9 @@ func _on_insect_selected(insect_resource: TileResource, is_black: bool) -> void:
if not used_cells.has(neighbour):
continue
#if used_cells[neighbour].is_black != is_black:
# eligible = false
# break
if used_cells[neighbour].is_black != is_black:
eligible = false
break
if eligible:
var outline = HEX_OUTLINE.instantiate()