From 76289dfda0b7405944e10a78b7381c723475bea4 Mon Sep 17 00:00:00 2001 From: Rangi Date: Fri, 17 Jul 2020 15:58:06 -0400 Subject: Port dbsprite macro for OAM y,x,tile,attr data from pokecrystal --- macros/gfx.asm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'macros') diff --git a/macros/gfx.asm b/macros/gfx.asm index 8803dad2..98eabec4 100644 --- a/macros/gfx.asm +++ b/macros/gfx.asm @@ -15,3 +15,8 @@ color EQUS "+ PAL_COLOR_SIZE *" tiles EQUS "* LEN_2BPP_TILE" tile EQUS "+ LEN_2BPP_TILE *" + +dbsprite: MACRO +; x tile, y tile, x pixel, y pixel, vtile offset, attributes + db (\2 * TILE_WIDTH) % $100 + \4, (\1 * TILE_WIDTH) % $100 + \3, \5, \6 +ENDM -- cgit v1.3.1-sl0p