adding new commands

This commit is contained in:
Clevertop 2024-08-11 11:05:16 +10:00
parent bfaef2f33f
commit cce3f56caa
5 changed files with 41 additions and 9 deletions

View file

@ -2,6 +2,7 @@ extends Node3D
# this is basically the level manager
signal broadcast(command : String)
signal tick(time : int)
@export_group("Variables")
@export var level_tick : float = 1 # how often to run a command
@ -55,9 +56,11 @@ func _process(delta):
current_tick += 1
if current_tick == 11:
gui.show_lose_screen("Time Expired", 3)
player.clear_effects()
fail_room()
pass
print("Tick: " + str(current_tick))
tick.emit(current_tick)
for i in pedestals.size():
if i+1 == current_tick:
var activated_pedestal = pedestals[i]