summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-06-05 14:54:57 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-06-05 14:54:57 -0400
commit2f0305d80a0f64c093eabceb434a2fd0c122caa2 (patch)
tree7b5d7d54ed3ce4cebd9b3e2809c5ce54e8eaddfd /constants
parente123bdf9784f752bda939a9040b6cc39e0ce014e (diff)
This looks like Gen 2's object animation engine
Diffstat (limited to 'constants')
-rwxr-xr-xconstants/oam_constants.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/constants/oam_constants.asm b/constants/oam_constants.asm
index ddf95648..8e855fc9 100755
--- a/constants/oam_constants.asm
+++ b/constants/oam_constants.asm
@@ -7,3 +7,18 @@ OAMFLAG_VFLIPPED EQU %00100000 ; OAM flag flips the sprite vertically.
; OAM attribute flags
OAM_HFLIP EQU %00100000 ; horizontal flip
OAM_VFLIP EQU %01000000 ; vertical flip
+
+frame: MACRO
+ db \1
+x = \2
+REPT _NARG +- 2
+x = x | (\3 << 1)
+ shift
+endr
+ db x
+ endm
+
+delanim EQUS "db $fc"
+dorepeat EQUS "db $fd,"
+dorestart EQUS "db $fe"
+endanim EQUS "db $ff"