diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-17 15:58:06 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-17 15:58:06 -0400 |
commit | 76289dfda0b7405944e10a78b7381c723475bea4 (patch) | |
tree | b3041f6324c7a5b6065a84d94af66ddb098dee2c /macros/gfx.asm | |
parent | f53341efa170a322392e5d9cf094128a52041b1d (diff) |
Port dbsprite macro for OAM y,x,tile,attr data from pokecrystal
Diffstat (limited to 'macros/gfx.asm')
-rw-r--r-- | macros/gfx.asm | 5 |
1 files changed, 5 insertions, 0 deletions
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 |