aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/cut.asm
diff options
context:
space:
mode:
authorVortyne <104168801+Vortyne@users.noreply.github.com>2024-09-29 18:54:41 -0400
committerGitHub <noreply@github.com>2024-09-29 18:54:41 -0400
commit1aa3fb24ec2d5002dc7b755776f42e855b709970 (patch)
treef00a69c046526d3a4caeb0d92560975c594133d7 /engine/overworld/cut.asm
parentImplement .pic to .2bpp decompression (#470) (diff)
downloadpokeyellow-1aa3fb24ec2d5002dc7b755776f42e855b709970.tar.gz
pokeyellow-1aa3fb24ec2d5002dc7b755776f42e855b709970.tar.xz
pokeyellow-1aa3fb24ec2d5002dc7b755776f42e855b709970.zip
`dbsprite` is the wrong macro for `WriteOAMBlock` data (#472)
Diffstat (limited to 'engine/overworld/cut.asm')
-rw-r--r--engine/overworld/cut.asm11
1 files changed, 7 insertions, 4 deletions
diff --git a/engine/overworld/cut.asm b/engine/overworld/cut.asm
index 3e514672..2f839f8c 100644
--- a/engine/overworld/cut.asm
+++ b/engine/overworld/cut.asm
@@ -119,12 +119,15 @@ LoadCutGrassAnimationTilePattern:
WriteCutOrBoulderDustAnimationOAMBlock:
call GetCutOrBoulderDustAnimationOffsets
ld a, $9
- ld de, CutOrBoulderDustAnimationTilesAndAttributes
+ ld de, .OAMBlock
jp WriteOAMBlock
-CutOrBoulderDustAnimationTilesAndAttributes:
- dbsprite 2, -1, 0, 4, $fd, OAM_OBP1
- dbsprite 2, -1, 0, 6, $ff, OAM_OBP1
+.OAMBlock:
+; tile ID, attributes
+ db $fc, OAM_OBP1
+ db $fd, OAM_OBP1
+ db $fe, OAM_OBP1
+ db $ff, OAM_OBP1
GetCutOrBoulderDustAnimationOffsets:
ld hl, wSpritePlayerStateData1YPixels