summaryrefslogtreecommitdiffstats
path: root/map_room.gd
diff options
context:
space:
mode:
Diffstat (limited to 'map_room.gd')
-rw-r--r--map_room.gd14
1 files changed, 14 insertions, 0 deletions
diff --git a/map_room.gd b/map_room.gd
index 2b55a3f..ef81891 100644
--- a/map_room.gd
+++ b/map_room.gd
@@ -1,2 +1,16 @@
class_name MapRoom
extends ColorRect
+
+@export var inactive_color: Color
+@export var active_color: Color
+
+func _ready():
+ unhighlight()
+
+func highlight():
+ color = active_color
+ $PlayerIcon.visible = true
+
+func unhighlight():
+ color = inactive_color
+ $PlayerIcon.visible = false