Skip to content

Commit

Permalink
Merge pull request #270 from tecMTST/ajustes-nivel-audio-boss
Browse files Browse the repository at this point in the history
Ajustes nivel audio boss
  • Loading branch information
mihailov-vf authored Feb 5, 2025
2 parents 0d5bfd0 + fe21df3 commit 2ffe514
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ func _ready() -> void:
Indicador.rect_position = Vector2((progressopos.x + 250), (progressopos.y + 75))

func _change_all(fase):
if fase > 3:
return
change_popup(fase)
change_indicador(fase)

func change_popup(fase):
if fase > 3:
pass
PopUp.texture = textura_popup[fase - 1]
PopUp.visible = true
PopUp_tween.interpolate_property(PopUp, "rect_scale", Vector2(0,0), Vector2(1,1), 1, Tween.TRANS_ELASTIC, Tween.EASE_IN_OUT)
Expand Down
1 change: 1 addition & 0 deletions projeto/recursos/jogos/enchente/chefao/AudioStreamSFX.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ func tocar_sfx(tipo: String) -> void:
if sfx.has(tipo):
stop()
stream = sfx[tipo][randi() % sfx[tipo].size()]
stream.loop = false
play()
1 change: 1 addition & 0 deletions projeto/recursos/jogos/enchente/chefao/ChamadaDoBoss.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ script = ExtResource( 1 )
one_shot = true

[node name="AudioStreamPlayerSFX" type="AudioStreamPlayer" parent="."]
bus = "SFX Game"
script = ExtResource( 2 )

[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
1 change: 1 addition & 0 deletions projeto/recursos/jogos/enchente/chefao/Chefao.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ texture = ExtResource( 67 )
wait_time = 3.0

[node name="AudioStreamPlayerSFX" type="AudioStreamPlayer" parent="."]
bus = "SFX Game"
script = ExtResource( 66 )

[connection signal="timeout" from="Timers/TimerAtaque" to="." method="_on_TimerAtaque_timeout"]
Expand Down

0 comments on commit 2ffe514

Please sign in to comment.