aboutsummaryrefslogtreecommitdiffstats
path: root/engine/gfx/animated_objects.asm
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-29 11:24:35 -0400
committerGitHub <noreply@github.com>2024-09-29 10:24:35 -0500
commit7d9858fec42d0cef1f0349c3cef250003c5ed66d (patch)
tree7cf362d6e8949e098159cb7778bbcf40301ad4de /engine/gfx/animated_objects.asm
parentMerge branch 'master' of https://github.com/pret/pokered (diff)
downloadpokeyellow-7d9858fec42d0cef1f0349c3cef250003c5ed66d.tar.gz
pokeyellow-7d9858fec42d0cef1f0349c3cef250003c5ed66d.tar.xz
pokeyellow-7d9858fec42d0cef1f0349c3cef250003c5ed66d.zip
Identify more bit flags (#119)
* Identify more bit flags * Bit serves dual use in debug mode
Diffstat (limited to 'engine/gfx/animated_objects.asm')
-rw-r--r--engine/gfx/animated_objects.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/gfx/animated_objects.asm b/engine/gfx/animated_objects.asm
index 208a2f85..0a71f59d 100644
--- a/engine/gfx/animated_objects.asm
+++ b/engine/gfx/animated_objects.asm
@@ -227,7 +227,7 @@ GetCurrentAnimatedObjectTileYCoordinate:
push hl
ld a, [hl]
ld hl, wCurAnimatedObjectOAMAttributes
- bit 6, [hl]
+ bit OAM_Y_FLIP, [hl]
jr z, .no_flip
add $8
xor $ff
@@ -240,7 +240,7 @@ GetCurrentAnimatedObjectTileXCoordinate:
push hl
ld a, [hl]
ld hl, wCurAnimatedObjectOAMAttributes
- bit 5, [hl]
+ bit OAM_X_FLIP, [hl]
jr z, .no_flip
add $8
xor $ff
@@ -254,14 +254,14 @@ SetCurrentAnimatedObjectOAMAttributes:
ld b, a
ld a, [hl]
xor b
- and $e0
+ and OAM_HFLIP | OAM_VFLIP | OAM_BEHIND_BG
ld b, a
ld a, [hl]
- and $10
+ and OAM_OBP1
or b
- bit 4, a
+ bit OAM_OBP_NUM, a
ret z
- or $4
+ or OAM_HIGH_PALS
ret
GetCurrentAnimatedObjectOAMDataPointer: