Browse Source

Increase walking speed

master
Forest Belton 2 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
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

Loading…
Cancel
Save