Skip to content

Commit

Permalink
Add the FamiTracker sound driver
Browse files Browse the repository at this point in the history
Removed my broken sound engine and replaced it with FamiTracker's sound
driver.  I might revisit the engine again, but probably not for this
game.
  • Loading branch information
zorchenhimer committed Jun 22, 2019
1 parent ea1acec commit 7d8f76e
Show file tree
Hide file tree
Showing 21 changed files with 6,530 additions and 6,483 deletions.
8 changes: 8 additions & 0 deletions ded.asm
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ Ded_Frame:
lda DedStartPal
sta DED_START_PAL

lda #3
.ifdef NTSC
ldx #0
.else
ldx #1
.endif
jsr snd_LOAD

lda #0
sta TmpX ; current color index
lda #2
Expand Down
11 changes: 11 additions & 0 deletions game.asm
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,17 @@ Game_Init:
sta DoNMIPointer
lda #>Game_NMI
sta DoNMIPointer+1

lda rng_seed
and #1
clc
adc #1
.ifdef NTSC
ldx #0
.else
ldx #1
.endif
jsr snd_LOAD
rts

game_FullInit:
Expand Down
Loading

0 comments on commit 7d8f76e

Please sign in to comment.