SILLY RTOBOT
This commit is contained in:
parent
2e23faf112
commit
ced705d9c5
6 changed files with 19 additions and 6 deletions
|
|
@ -20,6 +20,7 @@ func _ready() -> void:
|
|||
_wall_display.modulate = WALL_DISPLAY_COLOR
|
||||
_wall_display.text = str(_current_floor)
|
||||
EventBus.doors_closed.connect(_on_doors_closed)
|
||||
EventBus.doors_fully_closed.connect(_free_robot)
|
||||
EventBus.doors_opened.connect(_on_doors_opened)
|
||||
EventBus.floor_changed.connect(_on_floor_changed)
|
||||
EventBus.game_lost.connect(func(_reason: String): _free_robot())
|
||||
|
|
@ -43,7 +44,6 @@ func _on_doors_closed(_fast: bool) -> void:
|
|||
_hum.play()
|
||||
var next_floor: int = max(1, _current_floor - 1)
|
||||
_wall_display.text = str(next_floor)
|
||||
_free_robot()
|
||||
|
||||
func _on_doors_opened() -> void:
|
||||
_tween_dim(1.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue