A stab at audio engine.

This commit is contained in:
PikalaxALT
2015-12-06 22:36:09 -05:00
parent 6eac26732a
commit 02d05255fe
14 changed files with 1904 additions and 1846 deletions

View File

@@ -76,7 +76,7 @@ LoadCelebiGFX: ; 49912
lb bc, BANK(SpecialCelebiLeafGFX), 4
call Request2bpp
ld de, SpecialCelebiGFX
ld hl, VTiles1 tile $04
ld hl, VTiles0 tile $84
lb bc, BANK(SpecialCelebiGFX), $10
call Request2bpp
xor a
@@ -240,12 +240,12 @@ CelebiEvent_Cosine: ; 49b3b (12:5b3b)
add $10
and $3f
cp $20
jr nc, .asm_49b48
jr nc, .negative
call .SineFunction
ld a, h
ret
.asm_49b48
.negative
and $1f
call .SineFunction
ld a, h