pulse node, shaft strip, constantify, etc.
This commit is contained in:
parent
d4c609e1af
commit
0b6d121986
24 changed files with 645 additions and 245 deletions
|
|
@ -1,6 +1,9 @@
|
|||
extends CanvasLayer
|
||||
|
||||
func _ready():
|
||||
if EventBus.debug_starting_floor > 0:
|
||||
call_deferred("_start")
|
||||
return
|
||||
get_tree().paused = true
|
||||
|
||||
func _unhandled_input(event):
|
||||
|
|
@ -8,6 +11,14 @@ func _unhandled_input(event):
|
|||
if event.keycode == KEY_SPACE or event.keycode == KEY_ENTER:
|
||||
get_viewport().set_input_as_handled()
|
||||
_start()
|
||||
elif event.keycode >= KEY_1 and event.keycode <= KEY_9:
|
||||
EventBus.debug_starting_floor = event.keycode - KEY_0
|
||||
get_viewport().set_input_as_handled()
|
||||
_start()
|
||||
elif event.keycode == KEY_0:
|
||||
EventBus.debug_starting_floor = EventBus.STARTING_FLOOR
|
||||
get_viewport().set_input_as_handled()
|
||||
_start()
|
||||
|
||||
func _start():
|
||||
get_tree().paused = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue