diff --git a/README.md b/README.md index 1c0863c..629a99a 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Os sons estão sob licença Creative Commons * [jumping - fins](https://freesound.org/people/fins/sounds/146726/) (`pulo.wav`) * [hit_001 - leviclaassen](https://freesound.org/people/leviclaassen/sounds/107788/) (`colisao.wav`) * [sword04 - Erdie](https://freesound.org/people/Erdie/sounds/27858/) (`janela.wav`) +* [06260 swooshy trailer punch - Robinhood76](https://freesound.org/people/Robinhood76/sounds/333124/) (`fase.wav`) ### TODO diff --git a/assets/fase.wav b/assets/fase.wav new file mode 100644 index 0000000..2f8dcf7 Binary files /dev/null and b/assets/fase.wav differ diff --git a/src/config.asm b/src/config.asm index df6c857..c851bae 100644 --- a/src/config.asm +++ b/src/config.asm @@ -23,7 +23,7 @@ MAX_POSICAO_Y TEXTEQU ROWS JANELAS_QUEBRADAS_INICIAL TEXTEQU %5 JANELAS_QUEBRADAS = JANELAS_QUEBRADAS_INICIAL -DELAY_FASE TEXTEQU %1000 +DELAY_FASE TEXTEQU %2400 PULO_X TEXTEQU %21 PULO_Y TEXTEQU %10 diff --git a/src/faseTitulo.asm b/src/faseTitulo.asm index 9007bef..b63bf41 100644 --- a/src/faseTitulo.asm +++ b/src/faseTitulo.asm @@ -1,4 +1,7 @@ .DATA + +somFase BYTE "assets\fase.wav",0 + inicioTituloFrase BYTE " ______ ___ _____ ______ ",0 BYTE " / ____// | / ___/ / ____/ ",0 BYTE " / /_ / /| | \__ \ / __/ ",0 @@ -135,8 +138,25 @@ ENQUANTO: cmp eax, OFFSET finalTituloFase jb FACA + call tocarSomFase mov eax, DELAY_FASE call Delay ret -escreverTituloFase ENDP \ No newline at end of file +escreverTituloFase ENDP + + +;--------------------------------------------------------- +; tocarSomFase PROC +; Toca o som da fase +; Entrada: Nada +; Sa¡da: Nada +; Requer: Nada +;--------------------------------------------------------- +tocarSomFase PROC + mov edi, SND_FILENAME + or edi, SND_ASYNC + INVOKE PlaySound, OFFSET somFase, NULL, edi + + ret +tocarSomFase ENDP \ No newline at end of file