ATRACT mode fixed.

This commit is contained in:
Pecusx
2022-10-25 19:47:15 +02:00
parent 5f5ea0a752
commit 2aca68c41c
4 changed files with 7 additions and 3 deletions
+2
View File
@@ -1617,6 +1617,8 @@ notpressedJoyGetKey
lda #@kbcode._ret ;Return key lda #@kbcode._ret ;Return key
getkeyend getkeyend
ldx #0
stx ATRACT ; reset atract mode
mvx #sfx_keyclick sfx_effect mvx #sfx_keyclick sfx_effect
rts rts
.endp .endp
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+5 -3
View File
@@ -1206,7 +1206,8 @@ checkJoy
and #$0f and #$0f
cmp #$0f cmp #$0f
beq notpressedJoy beq notpressedJoy
tay tay
mva #0 ATRACT ; reset atract mode
lda joyToKeyTable,y lda joyToKeyTable,y
jmp jumpFromStick jmp jumpFromStick
notpressedJoy notpressedJoy
@@ -1415,8 +1416,9 @@ pressedS
pressedSpace pressedSpace
;================================= ;=================================
;we shoot here!!! ;we shoot here!!!
lda #0
mva #0 pressTimer ; reset sta ATRACT ; reset atract mode
sta pressTimer ; reset
jsr WaitForKeyRelease jsr WaitForKeyRelease
lda pressTimer lda pressTimer
cmp #25 ; 1/2s cmp #25 ; 1/2s