mirror of
https://github.com/pret/pokered.git
synced 2026-05-31 23:42:24 -05:00
Some checks failed
CI / build (push) Has been cancelled
- Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
12 lines
437 B
NASM
12 lines
437 B
NASM
; Loads tile patterns for tiles used in the pokedex.
|
|
LoadPokedexTilePatterns:
|
|
call LoadHpBarAndStatusTilePatterns
|
|
ld de, PokedexTileGraphics
|
|
ld hl, vChars2 tile $60
|
|
lb bc, BANK(PokedexTileGraphics), (PokedexTileGraphicsEnd - PokedexTileGraphics) / TILE_SIZE
|
|
call CopyVideoData
|
|
ld de, PokeballTileGraphics
|
|
ld hl, vChars2 tile $72
|
|
lb bc, BANK(PokeballTileGraphics), 1
|
|
jp CopyVideoData ; load pokeball tile for marking caught mons
|