Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)

This commit is contained in:
Rangi
2025-06-23 09:11:33 -04:00
committed by GitHub
parent ae7ee67d21
commit 4c540aa43b
149 changed files with 3444 additions and 3103 deletions

View File

@@ -8,7 +8,7 @@ FontBattleExtra:
INCBIN "gfx/font/font_battle_extra.2bpp"
Frames:
table_width TEXTBOX_FRAME_TILES * LEN_1BPP_TILE
table_width TEXTBOX_FRAME_TILES * TILE_1BPP_SIZE
INCBIN "gfx/frames/1.1bpp"
INCBIN "gfx/frames/2.1bpp"
INCBIN "gfx/frames/3.1bpp"

View File

@@ -4,12 +4,12 @@
; then a row of the bottom two tiles for those eight footprints.
; These macros help extract the first and the last two tiles, respectively.
DEF footprint_top EQUS "0, 2 * LEN_1BPP_TILE"
DEF footprint_bottom EQUS "2 * LEN_1BPP_TILE, 2 * LEN_1BPP_TILE"
DEF footprint_top EQUS "0, 2 * TILE_1BPP_SIZE"
DEF footprint_bottom EQUS "2 * TILE_1BPP_SIZE, 2 * TILE_1BPP_SIZE"
Footprints:
; Entries correspond to Pokémon species, two apiece, 8 tops then 8 bottoms
table_width LEN_1BPP_TILE * 4
table_width TILE_1BPP_SIZE * 4
; 001-008 top halves
INCBIN "gfx/footprints/bulbasaur.1bpp", footprint_top

View File

@@ -1,7 +1,7 @@
MACRO tilepal
; used in gfx/tilesets/*_palette_map.asm
; vram bank, pals
DEF x = \1 << OAM_TILE_BANK
DEF x = OAM_BANK\1
rept (_NARG - 1) / 2
dn (x | PAL_BG_\3), (x | PAL_BG_\2)
shift 2