adding new commands
This commit is contained in:
parent
bfaef2f33f
commit
cce3f56caa
5 changed files with 41 additions and 9 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue