Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/home/reload_sprites.asm
1270 views
1
; Copy the current map's sprites' tile patterns to VRAM again after they have
2
; been overwritten by other tile patterns.
3
ReloadMapSpriteTilePatterns::
4
ld hl, wFontLoaded
5
ld a, [hl]
6
push af
7
res BIT_FONT_LOADED, [hl]
8
push hl
9
xor a
10
ld [wSpriteSetID], a
11
call DisableLCD
12
farcall InitMapSprites
13
call EnableLCD
14
pop hl
15
pop af
16
ld [hl], a
17
call LoadPlayerSpriteGraphics
18
call LoadFontTilePatterns
19
jp UpdateSprites
20
21