Skip to content

Commit aed681e

Browse files
committed
map only start during high score entry
1 parent 02da1ca commit aed681e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/gamemodestate/handlegameover.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ gameModeState_handleGameOver:
1717
@gameOver:
1818
lda #$03
1919
sta renderMode
20+
inc entryActive
2021
jsr handleHighScoreIfNecessary
22+
dec entryActive
2123
lda #$01
2224
sta playState
2325
lda #$EF

src/nmi/pollkeyboard.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ kbStart = $0020 ; return
104104

105105

106106
mapKeysToButtons:
107+
lda entryActive
108+
bne @startOnly
107109
lda keyboardInput+>kbUp
108110
and #<kbUp
109111
beq @upNotPressed
@@ -162,6 +164,7 @@ mapKeysToButtons:
162164
ora #BUTTON_SELECT
163165
sta newlyPressedKeys
164166
@selectNotPressed:
167+
@startOnly:
165168

166169
lda keyboardInput+>kbStart
167170
and #<kbStart

src/ram.asm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ invisibleFlag: .res 1 ; $63B ; 0 for normal mode, non-zero for Invisible playfi
221221
currentFloor: .res 1 ; $63C floorModifier is copied here at game init. Set to 0 otherwise and incremented when linecap floor.
222222
mapperId: .res 1 ; $63D ; For INES_MAPPER 1000 (autodetect). 0 = CNROM. 1 = MMC1.
223223

224-
.res $35
224+
entryActive: .res 1
225+
.res $34
225226

226227
.if KEYBOARD
227228
; used for high score entry to throttle input and to flag when a letter has been input

0 commit comments

Comments
 (0)