pokecrystal-board/engine/movie/init_hof_credits.asm

73 lines
1.3 KiB
NASM
Raw Normal View History

2018-06-24 07:09:41 -07:00
InitDisplayForHallOfFame:
call ClearBGPalettes
call ClearTilemap
call ClearSprites
call DisableLCD
call LoadStandardFont
call LoadFontsBattleExtra
call ClearBGMap0or2
hlcoord 0, 0, wAttrmap
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
xor a
call ByteFill
xor a
ldh [hSCY], a
ldh [hSCX], a
call EnableLCD
ld hl, .SavingRecordText
call PrintText1bpp
call WaitBGMap2
2024-02-10 15:16:00 -08:00
call SetDefaultBGPAndOBP
ret
.SavingRecordText:
text_far _SavingRecordText
text_end
2018-06-24 07:09:41 -07:00
InitDisplayForRedCredits:
call ClearBGPalettes
call ClearTilemap
call ClearSprites
call DisableLCD
call LoadStandardFont
call LoadFontsBattleExtra
call ClearBGMap0or2
hlcoord 0, 0, wAttrmap
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
xor a
call ByteFill
2018-01-01 06:08:21 -08:00
ld hl, wBGPals1
ld c, 4 tiles
.load_white_palettes
ld a, LOW(PALRGB_WHITE)
ld [hli], a
ld a, HIGH(PALRGB_WHITE)
ld [hli], a
dec c
jr nz, .load_white_palettes
xor a
ldh [hSCY], a
ldh [hSCX], a
call EnableLCD
call WaitBGMap2
2024-02-10 15:16:00 -08:00
call SetDefaultBGPAndOBP
ret
2018-06-24 07:09:41 -07:00
ResetDisplayBetweenHallOfFameMons:
ldh a, [rSVBK]
push af
ld a, BANK(wDecompressScratch)
ldh [rSVBK], a
ld hl, wDecompressScratch
ld bc, wScratchAttrmap - wDecompressScratch
ld a, " "
call ByteFill
hlbgcoord 0, 0
ld de, wDecompressScratch
ld b, 0
ld c, 4 tiles
call Request2bpp
pop af
ldh [rSVBK], a
ret