summaryrefslogtreecommitdiff
path: root/UI/HUD
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-01-09 23:30:27 +0100
committerDaniel Weipert <code@drogueronin.de>2021-01-09 23:30:27 +0100
commit485cd463b22e12394cd232812e2c3789ef37ab1c (patch)
tree5c455ec9c80b59a9f71ba5827b9902f2beb6df88 /UI/HUD
parent7920e8758506cd46c58ea4889c9f4fb704abfd16 (diff)
Adds a bunch of characters and fixes things
Diffstat (limited to 'UI/HUD')
-rw-r--r--UI/HUD/LevelMap.gd4
-rw-r--r--UI/HUD/LevelMapCell.gd2
2 files changed, 4 insertions, 2 deletions
diff --git a/UI/HUD/LevelMap.gd b/UI/HUD/LevelMap.gd
index 8de38fa..1b4b860 100644
--- a/UI/HUD/LevelMap.gd
+++ b/UI/HUD/LevelMap.gd
@@ -8,9 +8,9 @@ func _ready():
func draw():
var Cell = load("res://UI/HUD/LevelMapCell.tscn")
- var Level = get_parent().get_parent() # HUD > Level
+ #var Level = get_parent().get_parent() # HUD > Level
- for idx in range(Global.Level_Map.size()):
+ for idx in range(Global.Level_Map.size()): # size = 9
var cell = Cell.instance()
cell.level_idx = idx
cell.set_rect_size(150/3, 150/3)
diff --git a/UI/HUD/LevelMapCell.gd b/UI/HUD/LevelMapCell.gd
index 16ff961..a03fc52 100644
--- a/UI/HUD/LevelMapCell.gd
+++ b/UI/HUD/LevelMapCell.gd
@@ -12,6 +12,8 @@ func _ready():
$ClearMark.text = "X"
elif level.cleared_by.idx == Enum.PLAYER.SECOND:
$ClearMark.text = "O"
+ elif level.cleared_by.idx == Enum.PLAYER.THIRD:
+ $ClearMark.text = "P"
$Time.text = str(level.time) + "s"
$Name.text = level.cleared_by.name