generated from tecMTST/modelo-godot-3.6
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from tecMTST/audio-design
Foi liberado o merge na reunião do dia 27/06/2024. Deus no comando. #Fé
- Loading branch information
Showing
31 changed files
with
157 additions
and
47 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[gd_resource type="AudioBusLayout" format=2] | ||
|
||
[resource] | ||
bus/0/volume_db = -5.04224 | ||
bus/1/name = "BGM" | ||
bus/1/solo = false | ||
bus/1/mute = false | ||
bus/1/bypass_fx = false | ||
bus/1/volume_db = -10.0741 | ||
bus/1/send = "SFX_GAME 2" | ||
bus/2/name = "BGM Track" | ||
bus/2/solo = false | ||
bus/2/mute = false | ||
bus/2/bypass_fx = false | ||
bus/2/volume_db = 0.0 | ||
bus/2/send = "BGM" | ||
bus/3/name = "BGM Aux" | ||
bus/3/solo = false | ||
bus/3/mute = false | ||
bus/3/bypass_fx = false | ||
bus/3/volume_db = -3.54298 | ||
bus/3/send = "BGM" | ||
bus/4/name = "SFX" | ||
bus/4/solo = false | ||
bus/4/mute = false | ||
bus/4/bypass_fx = false | ||
bus/4/volume_db = 0.0 | ||
bus/4/send = "SFX_GAME 2" | ||
bus/5/name = "SFX Menu" | ||
bus/5/solo = false | ||
bus/5/mute = false | ||
bus/5/bypass_fx = false | ||
bus/5/volume_db = 0.0 | ||
bus/5/send = "SFX" | ||
bus/6/name = "SFX Player" | ||
bus/6/solo = false | ||
bus/6/mute = false | ||
bus/6/bypass_fx = false | ||
bus/6/volume_db = 0.0 | ||
bus/6/send = "SFX_GAME 2" | ||
bus/7/name = "SFX Game" | ||
bus/7/solo = false | ||
bus/7/mute = false | ||
bus/7/bypass_fx = false | ||
bus/7/volume_db = 0.0 | ||
bus/7/send = "Master" |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
extends AudioStreamPlayer | ||
|
||
#Array de Clipes de Audio: | ||
onready var clipesSFX = { | ||
"clique": preload ("res://elementos/audio/sfx/hub/hub-clique.wav"), | ||
} | ||
|
||
#Gatilhos de clique no botão: | ||
func _on_coracaobotao_pressed(): | ||
stop() | ||
stream = clipesSFX.clique | ||
play() | ||
|
||
func _on_SaibaMais_pressed(): | ||
stop() | ||
stream = clipesSFX.clique | ||
play() | ||
|
||
func _on_SaibaMenos_pressed(): | ||
stop() | ||
stream = clipesSFX.clique | ||
play() | ||
|
||
func _on_Jogar_pressed(): | ||
stop() | ||
stream = clipesSFX.clique | ||
play() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
projeto/recursos/jogos/enchente/jogador/AudioStreamPlayer.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
extends AudioStreamPlayer | ||
|
||
#Array de clipes de audio: | ||
onready var clipesSFX = { | ||
"trocaFaixa": [ | ||
preload ("res://elementos/audio/sfx/minigame-1/player-mov-1.wav"), | ||
preload ("res://elementos/audio/sfx/minigame-1/player-mov-2.wav"), | ||
preload ("res://elementos/audio/sfx/minigame-1/player-mov-3.wav"), | ||
preload ("res://elementos/audio/sfx/minigame-1/player-mov-4.wav"), | ||
], | ||
"dano": [ | ||
preload ("res://elementos/audio/sfx/minigame-1/player-bolha-1.wav"), | ||
preload ("res://elementos/audio/sfx/minigame-1/player-bolha-2.wav"), | ||
] | ||
} | ||
|
||
#Gerador de número randômico: | ||
var rng = RandomNumberGenerator.new() | ||
|
||
#Gatilho de troca de faixa: | ||
func _on_ControleFaixa3D_iniciou_movimento(_direcao, _alvo) -> void: | ||
stop() | ||
stream = clipesSFX.trocaFaixa[rng.randf_range(0, clipesSFX.trocaFaixa.size())] | ||
play() | ||
|
||
#Gatilho de vida alterada: | ||
func _on_Vida_vida_alterada(alteracao: Vida.VidaAlterada) -> void: | ||
if !alteracao.cura: | ||
stop() | ||
stream = clipesSFX.dano[rng.randf_range(0, clipesSFX.dano.size())] | ||
play() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters