pedestals working

This commit is contained in:
Clevertop 2024-08-10 21:55:26 +10:00
parent 813feb9fef
commit 4a564dc3f5
6 changed files with 109 additions and 9 deletions

View file

@ -6,15 +6,14 @@ signal broadcast(command : String)
@export_group("Variables")
@export var level_tick : float = 1 # how often to run a command
@export var level_time : float = 10 # the amoutn of time allowed for the level
@export var commands : Array[String]
@export_group("Node References")
@export var gui : Control
@export var pedestals : Array[Pedestal]
# Called when the node enters the scene tree for the first time.
func _ready():
while(commands.size() < level_time / level_tick): # prevent index out of bounds error
commands.append("")
pass # Replace with function body.
@ -22,8 +21,7 @@ func _ready():
func _process(delta):
pass
func set_command(position : int, command : String):
commands[position] = command
func start_room():
# open door