Fixed Spider movement (it was not excluding itself after the first move

This commit is contained in:
Sch1nken 2024-03-14 22:13:33 +01:00
parent 76e4d6be34
commit 5722ffab48
9 changed files with 64 additions and 22 deletions

View file

@ -0,0 +1,15 @@
extends Resource
class_name ActionBehaviour
func do_action() -> void:
pass
# NOTE: When selecting a tile, check if there is an action behaviour
# If yes: In addition to showing moveable spaces (0 for the mosquito by default)
# also show action options (usually clicking other nearby tiles)
# For pillbug this "select" the tile, then create some sort of movement-outline
# to move thant unit there
# Check if unit was recently moved etc
#

View file

@ -0,0 +1,2 @@
extends ActionBehaviour
class_name ActionBehaviourMosquito

View file

@ -0,0 +1,2 @@
extends ActionBehaviour
class_name ActionBehaviourPillbug