diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-05 17:29:11 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-05 17:51:29 -0400 |
| commit | 2b2ed54bbf017943ba2343cd6c1dbe88b8f34a4e (patch) | |
| tree | a418c4ef57d272e7e2a70337ac8c2a8194545541 /home.asm | |
| parent | Port _RemovePokemon documentation from pokeyellow (diff) | |
| download | pokeyellow-2b2ed54bbf017943ba2343cd6c1dbe88b8f34a4e.tar.gz pokeyellow-2b2ed54bbf017943ba2343cd6c1dbe88b8f34a4e.tar.xz pokeyellow-2b2ed54bbf017943ba2343cd6c1dbe88b8f34a4e.zip | |
Identify wSpriteStateData1 and wSpriteStateData2 offsets, like pokeyellow
Diffstat (limited to 'home.asm')
| -rw-r--r-- | home.asm | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -111,9 +111,9 @@ ResetPlayerSpriteData:: ld hl, wSpriteStateData2 call ResetPlayerSpriteData_ClearSpriteData ld a, $1 - ld [wSpriteStateData1], a - ld [wSpriteStateData2 + $0e], a - ld hl, wSpriteStateData1 + 4 + ld [wSpritePlayerStateData1PictureID], a + ld [wSpritePlayerStateData2ImageBaseOffset], a + ld hl, wSpritePlayerStateData1YPixels ld [hl], $3c ; set Y screen pos inc hl inc hl @@ -485,7 +485,7 @@ TextScript_PokemonCenterPC:: StartSimulatingJoypadStates:: xor a ld [wOverrideSimulatedJoypadStatesMask], a - ld [wSpriteStateData2 + $06], a ; player's sprite movement byte 1 + ld [wSpritePlayerStateData2MovementByte1], a ld hl, wd730 set 7, [hl] ret @@ -572,7 +572,7 @@ CheckCoords:: ; sets carry if the coordinates are in the array, clears carry if not CheckBoulderCoords:: push hl - ld hl, wSpriteStateData2 + $04 + ld hl, wSpritePlayerStateData2MapY ld a, [hSpriteIndex] swap a ld d, $0 |
