Extensive work on animations and partially functional level keys, new UI gears but needs rounding error correction. Particle preloader added.
This commit is contained in:
19
scripts/level_keys_display.gd
Normal file
19
scripts/level_keys_display.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
extends Control
|
||||
|
||||
var keys_slots : Array = []
|
||||
|
||||
func _ready() -> void:
|
||||
for slot : LevelKeysSlot in $KeyIcons.get_children():
|
||||
slot.reset()
|
||||
keys_slots.append(slot)
|
||||
|
||||
func update() -> void:
|
||||
if Game.level == null:
|
||||
return
|
||||
#keys = Game.level.keys
|
||||
#for i in range(len(keys_slots)):
|
||||
#if i < len(keys):
|
||||
#keys_slots[i].set(keys[i])
|
||||
#else:
|
||||
#keys_slots[i].visible = false
|
||||
pass
|
||||
Reference in New Issue
Block a user