Merge pull request #383 from garakmon/createsprite

Update createsprite macro and rename BANK to BATTLER
This commit is contained in:
Diegoisawesome
2018-11-15 14:45:13 -06:00
committed by GitHub
3 changed files with 2124 additions and 2120 deletions
+6 -2
View File
@@ -10,10 +10,14 @@
.2byte \param0 .2byte \param0
.endm .endm
.macro createsprite template, priority, argv:vararg .macro createsprite template, anim_battler, subpriority_offset, argv:vararg
.byte 0x02 .byte 0x02
.4byte \template .4byte \template
.byte \priority .if \anim_battler == ANIM_TARGET
.byte 0x80 | (\subpriority_offset & 0x7F)
.else
.byte (\subpriority_offset & 0x7F)
.endif
.byte (.Lsprite_\@_2 - .Lsprite_\@_1) / 2 .byte (.Lsprite_\@_2 - .Lsprite_\@_1) / 2
.Lsprite_\@_1: .Lsprite_\@_1:
.2byte \argv .2byte \argv
+2116 -2116
View File
File diff suppressed because it is too large Load Diff