You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
@@ -4,8 +4,8 @@
|
||||
; then a row of the bottom two tiles for those eight footprints.
|
||||
|
||||
; These macros help extract the first and the last two tiles, respectively.
|
||||
footprint_top EQUS "0, 2 * LEN_1BPP_TILE"
|
||||
footprint_bottom EQUS "2 * LEN_1BPP_TILE, 2 * LEN_1BPP_TILE"
|
||||
DEF footprint_top EQUS "0, 2 * LEN_1BPP_TILE"
|
||||
DEF footprint_bottom EQUS "2 * LEN_1BPP_TILE, 2 * LEN_1BPP_TILE"
|
||||
|
||||
Footprints:
|
||||
; Entries correspond to Pokémon species, two apiece, 8 tops then 8 bottoms
|
||||
|
@@ -6,11 +6,11 @@
|
||||
const PAL_TOWNMAP_POI ; 4
|
||||
const PAL_TOWNMAP_POI_MTN ; 5
|
||||
|
||||
townmappals: MACRO
|
||||
rept _NARG / 2
|
||||
dn PAL_TOWNMAP_\2, PAL_TOWNMAP_\1
|
||||
shift 2
|
||||
endr
|
||||
MACRO townmappals
|
||||
rept _NARG / 2
|
||||
dn PAL_TOWNMAP_\2, PAL_TOWNMAP_\1
|
||||
shift 2
|
||||
endr
|
||||
ENDM
|
||||
|
||||
; gfx/pokegear/town_map.png
|
||||
|
@@ -2,12 +2,12 @@
|
||||
; names taken from pandocs
|
||||
; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_Palette_Commands
|
||||
|
||||
attr_blk: MACRO
|
||||
MACRO attr_blk
|
||||
db (SGB_ATTR_BLK << 3) + ((\1 * 6) / 16 + 1)
|
||||
db \1
|
||||
ENDM
|
||||
|
||||
attr_blk_data: MACRO
|
||||
MACRO attr_blk_data
|
||||
db \1 ; which regions are affected
|
||||
db \2 + (\3 << 2) + (\4 << 4) ; palette for each region
|
||||
db \5, \6, \7, \8 ; x1, y1, x2, y2
|
||||
|
@@ -2,17 +2,17 @@
|
||||
; names taken from pandocs
|
||||
; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_Palette_Commands
|
||||
|
||||
sgb_pal_set: MACRO
|
||||
MACRO sgb_pal_set
|
||||
db (SGB_PAL_SET << 3) + 1
|
||||
dw PREDEFPAL_\1, PREDEFPAL_\2, PREDEFPAL_\3, PREDEFPAL_\4
|
||||
ds 7, 0
|
||||
ENDM
|
||||
|
||||
sgb_pal01: MACRO
|
||||
MACRO sgb_pal01
|
||||
db (SGB_PAL01 << 3) + 1
|
||||
ENDM
|
||||
|
||||
sgb_pal23: MACRO
|
||||
MACRO sgb_pal23
|
||||
db (SGB_PAL23 << 3) + 1
|
||||
ENDM
|
||||
|
||||
|
@@ -1,11 +1,11 @@
|
||||
tilepal: MACRO
|
||||
MACRO tilepal
|
||||
; used in gfx/tilesets/*_palette_map.asm
|
||||
; vram bank, pals
|
||||
x = \1 << OAM_TILE_BANK
|
||||
rept (_NARG - 1) / 2
|
||||
dn (x | PAL_BG_\3), (x | PAL_BG_\2)
|
||||
shift 2
|
||||
endr
|
||||
DEF x = \1 << OAM_TILE_BANK
|
||||
rept (_NARG - 1) / 2
|
||||
dn (x | PAL_BG_\3), (x | PAL_BG_\2)
|
||||
shift 2
|
||||
endr
|
||||
ENDM
|
||||
|
||||
TilesetKantoPalMap:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
INCLUDE "constants.asm"
|
||||
|
||||
tilecoll: MACRO
|
||||
MACRO tilecoll
|
||||
; used in data/tilesets/*_collision.asm
|
||||
db COLL_\1, COLL_\2, COLL_\3, COLL_\4
|
||||
ENDM
|
||||
|
Reference in New Issue
Block a user