mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
dsprite always has 6 arguments
This commit is contained in:
parent
a7fb9e124c
commit
01d994b8a3
@ -85,20 +85,17 @@ ENDM
|
||||
|
||||
dbpixel: MACRO
|
||||
if _NARG >= 4
|
||||
; x tile, x pxl, y tile, y pxl
|
||||
db \1 * 8 + \3, \2 * 8 + \4
|
||||
else
|
||||
; x, y
|
||||
db \1 * 8, \2 * 8
|
||||
endc
|
||||
ENDM
|
||||
|
||||
dsprite: MACRO
|
||||
; conditional segment is there because not every instance of
|
||||
; this macro is directly OAM
|
||||
if _NARG >= 7 ; y tile, y pxl, x tile, x pxl, vtile offset, flags, palette
|
||||
db (\1 * 8) % $100 + \2, (\3 * 8) % $100 + \4, \5, (\6 << 3) + (\7 & PALETTE_MASK)
|
||||
else
|
||||
; y tile, y pxl, x tile, x pxl, vtile offset, flags, attributes
|
||||
db (\1 * 8) % $100 + \2, (\3 * 8) % $100 + \4, \5, \6
|
||||
endc
|
||||
ENDM
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user