aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/animations.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-06-30 12:47:22 -0400
committerGitHub <noreply@github.com>2025-06-30 12:47:22 -0400
commit56c405de09ce267c4cfbc68a15c37b2ff51c635a (patch)
tree47d25c237e9af824f7a57295a2d2e298b194a8e6 /engine/battle/animations.asm
parentDistinguish single trainer pics section from Pokemon pics (diff)
downloadpokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.tar.gz
pokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.tar.xz
pokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.zip
Replace hardware_constants.asm with hardware.inc (#511)
Diffstat (limited to 'engine/battle/animations.asm')
-rw-r--r--engine/battle/animations.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm
index ce6c6d5d..6f255dd6 100644
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -80,13 +80,13 @@ DrawFrameBlock:
; toggle horizontal and vertical flip
ld a, [hli] ; flags
and a
- ld b, OAM_VFLIP | OAM_HFLIP
+ ld b, OAM_YFLIP | OAM_XFLIP
jr z, .storeFlags1
- cp OAM_HFLIP
- ld b, OAM_VFLIP
+ cp OAM_XFLIP
+ ld b, OAM_YFLIP
jr z, .storeFlags1
- cp OAM_VFLIP
- ld b, OAM_HFLIP
+ cp OAM_YFLIP
+ ld b, OAM_XFLIP
jr z, .storeFlags1
ld b, 0
.storeFlags1
@@ -114,13 +114,13 @@ DrawFrameBlock:
ld [de], a ; store tile ID
inc de
ld a, [hli]
- bit OAM_X_FLIP, a
+ bit B_OAM_XFLIP, a
jr nz, .disableHorizontalFlip
.enableHorizontalFlip
- set OAM_X_FLIP, a
+ set B_OAM_XFLIP, a
jr .storeFlags2
.disableHorizontalFlip
- res OAM_X_FLIP, a
+ res B_OAM_XFLIP, a
.storeFlags2
ld [de], a
inc de
@@ -726,7 +726,7 @@ DoBallTossSpecialEffects:
dec b
jr nz, .loop
ld a, %00001000
- ldh [rNR10], a ; Channel 1 sweep register
+ ldh [rAUD1SWEEP], a ; Channel 1 sweep register
ret
.isTrainerBattle ; if it's a trainer battle, shorten the animation by one frame
ld a, [wSubAnimCounter]
@@ -2408,7 +2408,7 @@ FallingObjects_UpdateOAMEntry:
sub b
ld [hli], a ; X
inc hl
- ld a, 1 << OAM_X_FLIP
+ ld a, OAM_XFLIP
.next2
ld [hl], a ; attribute
ret