Skip to content

Commit

Permalink
Added end game music.
Browse files Browse the repository at this point in the history
  • Loading branch information
copsicle committed Jun 9, 2018
1 parent d8e0737 commit 26a3a25
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 1 addition & 2 deletions data.inc
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
;Saves locations of images to memory as bytes

hddMusic BYTE "music.wav", 0
hddP1 BYTE "p1hit.wav", 0
hddP2 BYTE "p2hit.wav", 0
hddEnd BYTE "end.wav", 0

;Locations of music files

Expand Down
Binary file added end.wav
Binary file not shown.
14 changes: 14 additions & 0 deletions funcs.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

INCLUDE \masm32\include\winmm.inc

INCLUDELIB \masm32\lib\winmm.lib

;Inclde libraries for sound

.CODE

startPos PROC
Expand Down Expand Up @@ -669,6 +675,10 @@
INVOKE drd_flip

;Draws end screen for when player 1 wins

INVOKE PlaySound, OFFSET hddEnd, NULL, SND_ASYNC OR SND_LOOP

;Play end music
JMP loopc
Expand All @@ -686,6 +696,10 @@
;Draws end screen for when player 2 wins

INVOKE PlaySound, OFFSET hddEnd, NULL, SND_ASYNC OR SND_LOOP

;Play end music

loopc:
INVOKE drd_processMessages
Expand Down
6 changes: 0 additions & 6 deletions mainFuncs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ INCLUDELIB drd.lib

;Include the inc and library of drd

INCLUDE \masm32\include\winmm.inc

INCLUDELIB \masm32\lib\winmm.lib

;Inclde libraries for sound

INCLUDE data.inc

INCLUDE funcs.inc
Expand Down

0 comments on commit 26a3a25

Please sign in to comment.