Skip to content

Commit

Permalink
Adicionando som de fase
Browse files Browse the repository at this point in the history
  • Loading branch information
LorhanSohaky committed Dec 2, 2018
1 parent 3943c01 commit 4970067
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added assets/fase.wav
Binary file not shown.
2 changes: 1 addition & 1 deletion src/config.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 21 additions & 1 deletion src/faseTitulo.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.DATA

somFase BYTE "assets\fase.wav",0

inicioTituloFrase BYTE " ______ ___ _____ ______ ",0
BYTE " / ____// | / ___/ / ____/ ",0
BYTE " / /_ / /| | \__ \ / __/ ",0
Expand Down Expand Up @@ -135,8 +138,25 @@ ENQUANTO:
cmp eax, OFFSET finalTituloFase
jb FACA
call tocarSomFase
mov eax, DELAY_FASE
call Delay
ret
escreverTituloFase ENDP
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

0 comments on commit 4970067

Please sign in to comment.