From 485cd463b22e12394cd232812e2c3789ef37ab1c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 9 Jan 2021 23:30:27 +0100 Subject: Adds a bunch of characters and fixes things --- UI/HUD/LevelMap.gd | 4 ++-- UI/HUD/LevelMapCell.gd | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'UI/HUD') 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 -- cgit v1.2.3