diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-08 22:09:31 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-08 22:14:15 +0100 |
| commit | f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd (patch) | |
| tree | eb6c2008a025f6ae88f7dc1e3f61360599189e0e /src/player.s | |
| parent | feed0b705daff0001253b6ec89b61c9821d2fe21 (diff) | |
| download | jetpac.nes-f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd.tar.gz jetpac.nes-f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd.zip | |
Support reading from the second controller
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/player.s')
| -rw-r--r-- | src/player.s | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
