Browse Source

Increase walking speed

master
Forest Belton 3 years ago
parent
commit
3b7ea84c9e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/player.s

+ 4
- 0
src/player.s View File

@ -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

Loading…
Cancel
Save