Add quota dots to screen and color-code people count
- And try to remove survivors after doors close with queue_free - And move panel?? Still not right.
This commit is contained in:
parent
0cc7611515
commit
b92388cfe0
7 changed files with 43 additions and 5 deletions
|
|
@ -12,6 +12,8 @@ var _batch_generation: int = 0
|
|||
|
||||
func _enter_tree() -> void:
|
||||
EventBus.floor_started.connect(_on_floor_started, CONNECT_DEFERRED)
|
||||
EventBus.doors_closed.connect(_on_doors_closed)
|
||||
EventBus.doors_fully_closed.connect(_clear_active_walkers)
|
||||
|
||||
func _on_floor_started(count: int) -> void:
|
||||
_batch_generation += 1
|
||||
|
|
@ -20,6 +22,9 @@ func _on_floor_started(count: int) -> void:
|
|||
return
|
||||
_run_batch(count, _batch_generation)
|
||||
|
||||
func _on_doors_closed(_fast: bool) -> void:
|
||||
_batch_generation += 1
|
||||
|
||||
func _clear_active_walkers() -> void:
|
||||
for w in _active_walkers:
|
||||
if is_instance_valid(w):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue