break the glass!!
This commit is contained in:
parent
79bb0b1323
commit
ddd3728704
2 changed files with 22 additions and 1 deletions
|
@ -2,6 +2,8 @@ extends "res://maps/map.gd"
|
|||
|
||||
const Text3D = preload("res://objects/hud/3d_text.tscn")
|
||||
|
||||
var speccy_will_yell: bool = true
|
||||
|
||||
func _ready():
|
||||
Game.current_sector = Vector2.ZERO
|
||||
|
||||
|
@ -10,6 +12,7 @@ func _on_2600_entered_phase(phase):
|
|||
2:
|
||||
Audio.play_sound(Audio.a_glass_crack,Audio.ac_mech_hurt)
|
||||
$DelayedArrow2.start()
|
||||
speccy_will_yell = false
|
||||
3:
|
||||
Audio.play_sound(Audio.a_glass_break,Audio.ac_mech_hurt)
|
||||
$DelayedArrow3.start()
|
||||
|
@ -34,3 +37,8 @@ func _on_ExitTimer_timeout():
|
|||
Game.change_map(LevelData.levels[Game.current_level].scene)
|
||||
else:
|
||||
Game.change_map(load("res://menus/level_select_scholar.tscn"))
|
||||
|
||||
|
||||
func _on_SpeccyTimer_timeout() -> void:
|
||||
if speccy_will_yell:
|
||||
$Speccy.appear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue