From f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 8 Mar 2026 22:09:31 +0100 Subject: Support reading from the second controller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- src/player.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/player.s') diff --git a/src/player.s b/src/player.s index 53695b4..60005af 100644 --- a/src/player.s +++ b/src/player.s @@ -249,7 +249,7 @@ bit zp_state bpl @check_thrust lda #Joypad::BUTTON_DOWN - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @check_thrust lda #0 sta zp_velocity_y @@ -258,7 +258,7 @@ @check_thrust: ;; Check if the player is asking to thrust, otherwise apply gravity. lda #(Joypad::BUTTON_UP | Joypad::BUTTON_A) - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @set_gravity ;; Player is throttling, reflect that on the player's state. @@ -349,7 +349,7 @@ .proc update_horizontal_position lda #Joypad::BUTTON_LEFT - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @check_right ;; We are facing left, reflect that on the state and the sprite. @@ -374,7 +374,7 @@ ;; Same as the part above but applied to going right. @check_right: lda #Joypad::BUTTON_RIGHT - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @nothing lda #%01000100 -- cgit v1.2.3