SILLY RTOBOT
This commit is contained in:
parent
2e23faf112
commit
ced705d9c5
6 changed files with 19 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ const ROBOT_DELAY_MIN := 1.0
|
|||
|
||||
var people_in_elevator := 0
|
||||
|
||||
const PERFECT_STUN_DURATION := 0.25
|
||||
const PERFECT_STUN_DURATION := 1.5
|
||||
const PRE_PULSE_DELAY := 3.5
|
||||
|
||||
func _ready():
|
||||
|
|
@ -44,6 +44,7 @@ func _ready():
|
|||
EventBus.game_started.connect(_start_floor)
|
||||
EventBus.game_lost.connect(func(_reason): $SfxRobotIUnderstand.play())
|
||||
EventBus.survivor_squeaked_in.connect(_on_survivor_squeaked_in)
|
||||
EventBus.robot_close_warning.connect(_on_robot_close_warning)
|
||||
|
||||
func _unhandled_input(event):
|
||||
if event is InputEventKey and event.pressed and not event.echo:
|
||||
|
|
@ -118,6 +119,10 @@ func _on_survivor_squeaked_in():
|
|||
if not $SfxRobotSoundsDifficult.playing:
|
||||
$SfxRobotSoundsDifficult.play()
|
||||
|
||||
func _on_robot_close_warning():
|
||||
if not $SfxRobotDeepBreath.playing:
|
||||
$SfxRobotDeepBreath.play()
|
||||
|
||||
func _on_block_pressed():
|
||||
if doors_closing_flag:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue