summaryrefslogtreecommitdiffstats
path: root/map_room.gd
diff options
context:
space:
mode:
Diffstat (limited to 'map_room.gd')
-rw-r--r--map_room.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/map_room.gd b/map_room.gd
index ef81891..d04deb8 100644
--- a/map_room.gd
+++ b/map_room.gd
@@ -4,8 +4,12 @@ extends ColorRect
@export var inactive_color: Color
@export var active_color: Color
+@onready var pi: TextureRect = $PlayerIcon;
+
func _ready():
unhighlight()
+
+ pi.position = get_rect().size / 2 - pi.get_rect().size / 2 - Vector2(0, 1.1)
func highlight():
color = active_color