|
|
@ -75,6 +75,7 @@ Player_Update:: |
|
|
|
cp SCRN_X |
|
|
|
jr nc, .left |
|
|
|
|
|
|
|
inc [hl] |
|
|
|
inc [hl] |
|
|
|
|
|
|
|
call player_bg_collides |
|
|
@ -89,6 +90,7 @@ Player_Update:: |
|
|
|
.right_rollback: |
|
|
|
ld hl, PLAYER_X |
|
|
|
dec [hl] |
|
|
|
dec [hl] |
|
|
|
ret |
|
|
|
|
|
|
|
.left: |
|
|
@ -103,6 +105,7 @@ Player_Update:: |
|
|
|
or a |
|
|
|
ret z |
|
|
|
|
|
|
|
dec [hl] |
|
|
|
dec [hl] |
|
|
|
|
|
|
|
call player_bg_collides |
|
|
@ -117,6 +120,7 @@ Player_Update:: |
|
|
|
.left_rollback: |
|
|
|
ld hl, PLAYER_X |
|
|
|
dec [hl] |
|
|
|
inc [hl] |
|
|
|
ret |
|
|
|
|
|
|
|
; Update player metasprite with positional data |
|
|
|