Fix positioning bug

This commit is contained in:
Lucas Scharenbroich 2022-06-26 23:50:03 -05:00
parent 145fd2afc4
commit c501e9f944
1 changed files with 5 additions and 4 deletions

View File

@ -433,8 +433,6 @@ SetLimits
pla
sta ScreenHeight
lda TileMapWidth
asl
asl
@ -467,7 +465,7 @@ UpdateCameraPos
:x_pos cmp MaxBG0X
bcc :x_ok
lda MaxBG0X
:x_ok pha ; Push the x-position
:x_ok sta StartX
lda ScreenHeight
lsr
@ -480,7 +478,10 @@ UpdateCameraPos
:y_pos cmp MaxBG0Y
bcc :y_ok
lda MaxBG0Y
:y_ok pha ; Push the y-position
:y_ok sta StartY
pei StartX
pei StartY
_GTESetBG0Origin
pea $0000