mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Identify wSpriteStateData1 and wSpriteStateData2 offsets, like pokeyellow
This commit is contained in:
parent
7ab43f4d17
commit
2b2ed54bbf
62 changed files with 182 additions and 179 deletions
|
|
@ -127,7 +127,7 @@ CutOrBoulderDustAnimationTilesAndAttributes:
|
|||
db $FE,$10,$FF,$10
|
||||
|
||||
GetCutOrBoulderDustAnimationOffsets:
|
||||
ld hl, wSpriteStateData1 + 4
|
||||
ld hl, wSpritePlayerStateData1YPixels
|
||||
ld a, [hli] ; player's sprite screen Y position
|
||||
ld b, a
|
||||
inc hl
|
||||
|
|
@ -187,7 +187,7 @@ ReplaceTreeTileBlock:
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
add hl, bc
|
||||
ld a, [wSpriteStateData1 + 9] ; player sprite's facing direction
|
||||
ld a, [wSpritePlayerStateData1FacingDirection]
|
||||
and a
|
||||
jr z, .down
|
||||
cp SPRITE_FACING_UP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue