diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-08-30 16:33:14 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-08-30 16:33:14 -0400 |
| commit | b506214f68b3b6cfc75e40373b29961af7cbd6f2 (patch) | |
| tree | 708574e9136364c14f7c4cd3095dba1fb3c3b623 /home/map_objects.asm | |
| parent | Document more hidden object data and behavior (diff) | |
| download | pokeyellow-b506214f68b3b6cfc75e40373b29961af7cbd6f2.tar.gz pokeyellow-b506214f68b3b6cfc75e40373b29961af7cbd6f2.tar.xz pokeyellow-b506214f68b3b6cfc75e40373b29961af7cbd6f2.zip | |
Identify some hSpriteDataOffset values
Diffstat (limited to 'home/map_objects.asm')
| -rw-r--r-- | home/map_objects.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/home/map_objects.asm b/home/map_objects.asm index 02555e35..27a69965 100644 --- a/home/map_objects.asm +++ b/home/map_objects.asm @@ -80,7 +80,7 @@ SetSpriteFacingDirectionAndDelay:: jp DelayFrames SetSpriteFacingDirection:: - ld a, $9 + ld a, SPRITESTATEDATA1_FACINGDIRECTION ldh [hSpriteDataOffset], a call GetPointerWithinSpriteStateData1 ldh a, [hSpriteFacingDirection] @@ -88,7 +88,7 @@ SetSpriteFacingDirection:: ret SetSpriteImageIndexAfterSettingFacingDirection:: - ld de, -7 + ld de, SPRITESTATEDATA1_IMAGEINDEX - SPRITESTATEDATA1_FACINGDIRECTION add hl, de ld [hl], a ret @@ -158,11 +158,11 @@ CheckBoulderCoords:: jp CheckCoords GetPointerWithinSpriteStateData1:: - ld h, $c1 + ld h, HIGH(wSpriteStateData1) jr _GetPointerWithinSpriteStateData GetPointerWithinSpriteStateData2:: - ld h, $c2 + ld h, HIGH(wSpriteStateData2) _GetPointerWithinSpriteStateData: ldh a, [hSpriteDataOffset] |
