18 lines
335 B
GDScript3
Raw Normal View History

2026-04-13 11:34:00 -05:00
class_name Turn extends Tile
@export var direction: Board.Direction
@onready var highlight: Panel = %Highlight
func handle_mouse_entered() -> void:
highlight.show()
func handle_mouse_exited() -> void:
highlight.hide()
func handle_gui_input(event: InputEvent):
if event.is_action_pressed("select"):
tile_selected.emit(self)