Skip to content

Commit 7d8f76e

Browse files
committed
Add the FamiTracker sound driver
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.
1 parent ea1acec commit 7d8f76e

21 files changed

+6530
-6483
lines changed

ded.asm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ Ded_Frame:
180180
lda DedStartPal
181181
sta DED_START_PAL
182182

183+
lda #3
184+
.ifdef NTSC
185+
ldx #0
186+
.else
187+
ldx #1
188+
.endif
189+
jsr snd_LOAD
190+
183191
lda #0
184192
sta TmpX ; current color index
185193
lda #2

game.asm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ Game_Init:
266266
sta DoNMIPointer
267267
lda #>Game_NMI
268268
sta DoNMIPointer+1
269+
270+
lda rng_seed
271+
and #1
272+
clc
273+
adc #1
274+
.ifdef NTSC
275+
ldx #0
276+
.else
277+
ldx #1
278+
.endif
279+
jsr snd_LOAD
269280
rts
270281

271282
game_FullInit:

0 commit comments

Comments
 (0)