Load overworld font and frame via HDMA instead of copying to VRAM (#10)

This commit is contained in:
xCrystal
2023-08-12 21:14:46 +02:00
parent db26480ffd
commit c405c955ba
4 changed files with 24 additions and 30 deletions

View File

@@ -72,6 +72,21 @@ LoadFont_NoOAMUpdate::
ldh [hOAMUpdate], a
ret
LoadOverworldFont_NoOAMUpdate::
ldh a, [hOAMUpdate]
push af
ld a, $1
ldh [hOAMUpdate], a
call LoadOverworldFontAndFrame
ld a, $90
ldh [hWY], a
call SafeUpdateSprites
pop af
ldh [hOAMUpdate], a
ret
HDMATransfer_FillBGMap0WithBlack:
ldh a, [rSVBK]
push af