Handle the repositioning in the new map of a mocked player object after going through a map connection (#29)

This commit is contained in:
xCrystal
2024-01-05 20:57:35 +01:00
parent 67e20e454e
commit 98b04522e1
10 changed files with 336 additions and 8 deletions

View File

@@ -118,6 +118,8 @@ BoardMenuScript::
ld [wBeforeViewMapXCoord], a
ld a, [wYCoord]
ld [wBeforeViewMapYCoord], a
ld a, [wPlayerDirection]
ld [wBeforeViewMapDirection], a
xor a
ld [wViewMapModeDisplacementY], a
ld [wViewMapModeDisplacementX], a

View File

@@ -291,6 +291,8 @@ PromptPlayerToChooseBranchDirection:
ld [wBeforeViewMapXCoord], a
ld a, [wYCoord]
ld [wBeforeViewMapYCoord], a
ld a, [wPlayerDirection]
ld [wBeforeViewMapDirection], a
xor a
ld [wViewMapModeDisplacementY], a
ld [wViewMapModeDisplacementX], a