mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
baa0dc5a96
This is an informed attempt at reorganizing the engine/ directory by creating categorized subdirectories, in order to make it easier to navigate and find things. The directories created are as follows: * engine/game: Contains all "minigames", things like the unown puzzle and slot machine. * engine/gfx: Contains all handling of graphics. From loading palettes to playing animations. * engine/link: Contains all multiplayer functionality. * engine/menu: Contains all generic/misc. menus and menu code. Other, more specialized menus are in their own subdirectories (pokedex, pokegear, party menu, etc). * engine/overworld: Contains all handling of the overworld. From loading and connecting maps to wild encounters and the scripting engine. * engine/pokegear: In the same vein as engine/pokedex, except it could use some more splitting up. * engine/pokemon: Contains everything related to manipulating pokemon data. From the pokemon storage system to evolution and mail. * engine/printer: Contains everything related to printing things as well as the printer communication. * engine/title: Contains intro sequences, title screens and credits.
80 lines
1.4 KiB
NASM
80 lines
1.4 KiB
NASM
InitDisplayForHallOfFame: ; 4e881
|
|
call ClearBGPalettes
|
|
call ClearTileMap
|
|
call ClearSprites
|
|
call DisableLCD
|
|
call LoadStandardFont
|
|
call LoadFontsBattleExtra
|
|
hlbgcoord 0, 0
|
|
ld bc, vBGMap1 - vBGMap0
|
|
ld a, " "
|
|
call ByteFill
|
|
hlcoord 0, 0, wAttrMap
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
xor a
|
|
call ByteFill
|
|
xor a
|
|
ld [hSCY], a
|
|
ld [hSCX], a
|
|
call EnableLCD
|
|
ld hl, .SavingRecordDontTurnOff
|
|
call PrintText
|
|
call WaitBGMap2
|
|
call SetPalettes
|
|
ret
|
|
|
|
.SavingRecordDontTurnOff: ; 0x4e8bd
|
|
; SAVING RECORD… DON'T TURN OFF!
|
|
text_jump UnknownText_0x1bd39e
|
|
db "@"
|
|
|
|
InitDisplayForRedCredits: ; 4e8c2
|
|
call ClearBGPalettes
|
|
call ClearTileMap
|
|
call ClearSprites
|
|
call DisableLCD
|
|
call LoadStandardFont
|
|
call LoadFontsBattleExtra
|
|
hlbgcoord 0, 0
|
|
ld bc, vBGMap1 - vBGMap0
|
|
ld a, " "
|
|
call ByteFill
|
|
hlcoord 0, 0, wAttrMap
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
xor a
|
|
call ByteFill
|
|
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
|
|
ld [hSCY], a
|
|
ld [hSCX], a
|
|
call EnableLCD
|
|
call WaitBGMap2
|
|
call SetPalettes
|
|
ret
|
|
|
|
ResetDisplayBetweenHallOfFameMons: ; 4e906
|
|
ld a, [rSVBK]
|
|
push af
|
|
ld a, BANK(wDecompressScratch)
|
|
ld [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
|
|
ld [rSVBK], a
|
|
ret
|