Skip to content

Commit

Permalink
twoplayer: Allow p1 to press start in high score for p2
Browse files Browse the repository at this point in the history
This is necessary for famicom where p2 lacks a start button.

Fixes #7
  • Loading branch information
ejona86 committed Mar 21, 2020
1 parent beb3056 commit bb1b3a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions twoplayer.s
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,11 @@ highScoreEntryScreen_get_player:
jsr loadSpriteIntoOamStaging
ldx tmp3
beq @ret
; copy start presses from player1 to player2 for famicom
lda newlyPressedButtons_player1
and #$10 ; start
ora newlyPressedButtons_player2
sta newlyPressedButtons_player2
ldx #$01
@ret:
rts
Expand Down

0 comments on commit bb1b3a4

Please sign in to comment.