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()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=19 format=2]
|
||||
[gd_scene load_steps=20 format=2]
|
||||
|
||||
[ext_resource path="res://tilesets/t_factory.tres" type="TileSet" id=1]
|
||||
[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=2]
|
||||
|
@ -18,6 +18,7 @@
|
|||
[ext_resource path="res://tilesets/t_death.tres" type="TileSet" id=16]
|
||||
[ext_resource path="res://objects/lore/boss/2600.tscn" type="PackedScene" id=17]
|
||||
[ext_resource path="res://objects/lore/boss/steel_factory.tscn" type="PackedScene" id=18]
|
||||
[ext_resource path="res://objects/npc/speccy.tscn" type="PackedScene" id=19]
|
||||
|
||||
[node name="Map" type="Node2D" groups=["map"]]
|
||||
pause_mode = 1
|
||||
|
@ -143,5 +144,17 @@ margin_top = 59.0
|
|||
margin_right = 152.0
|
||||
margin_bottom = 67.0
|
||||
|
||||
[node name="Speccy" parent="." instance=ExtResource( 19 )]
|
||||
position = Vector2( 152, 176 )
|
||||
flip = true
|
||||
message = "break_the_glass"
|
||||
|
||||
[node name="SpeccyTimer" type="Timer" parent="."]
|
||||
process_mode = 0
|
||||
wait_time = 45.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="entered_phase" from="2600" to="." method="_on_2600_entered_phase"]
|
||||
[connection signal="timeout" from="ExitTimer" to="." method="_on_ExitTimer_timeout"]
|
||||
[connection signal="timeout" from="SpeccyTimer" to="." method="_on_SpeccyTimer_timeout"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue