aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/animations.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
committerdannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
commitca019eac8fd96559f4d4e712f0b53e95492e5dcb (patch)
tree209a500e3bda6c2109e5acec60448e9e52f8c2af /engine/battle/animations.asm
parentUse more ldpikacry (diff)
parentRequire RGBDS 0.9.3 for its DMG palette specs (#513) (diff)
downloadpokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.gz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.xz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.zip
Merge branch 'master' of https://github.com/pret/pokered
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 08399ad4..cba2f154 100644
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -97,13 +97,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
@@ -138,13 +138,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 b, a
ld a, [wdef4]
@@ -766,7 +766,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]
@@ -2587,7 +2587,7 @@ FallingObjects_UpdateOAMEntry:
ld [wdef4], a
.asm_79e5c
inc hl
- ld a, 1 << OAM_X_FLIP
+ ld a, OAM_XFLIP
.next2
ld b, a
ld a, [wdef4]