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