Change colors during the game with the G key (a800 only)

This commit is contained in:
Pecusx
2023-01-05 09:58:36 +01:00
parent d66e588203
commit c151940735
4 changed files with 15 additions and 4 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+6 -3
View File
@@ -114,7 +114,11 @@ OptionsNoRight
OptionsNoReturn OptionsNoReturn
cmp #@kbcode._tab ; Tab key cmp #@kbcode._tab ; Tab key
bne OptionsNoTab bne OptionsNoTab
NextGradientNr jsr SelectNextGradient
OptionsNoTab
jmp OptionsMainLoop
.endp
.proc SelectNextGradient
ldy GradientNr ldy GradientNr
iny iny
cpy #$03 cpy #$03
@@ -126,8 +130,7 @@ NoGradientLoop
sta GradientColors sta GradientColors
lda GradientAddrH,y lda GradientAddrH,y
sta GradientColors+1 sta GradientColors+1
OptionsNoTab rts
jmp OptionsMainLoop
.endp .endp
;-------- ;--------
; inversing selected option (cursor) ; inversing selected option (cursor)
+9 -1
View File
@@ -1196,7 +1196,14 @@ jumpFromStick
jeq pressedM jeq pressedM
cmp #@kbcode._S ; $3e ; S cmp #@kbcode._S ; $3e ; S
jeq pressedS jeq pressedS
jmp notpressed .IF TARGET = 800
cmp #61 ; G
bne EndKeys
jsr SelectNextGradient
jmp ReleaseAndLoop
.ENDIF
EndKeys
jmp notpressed
checkJoy checkJoy
;------------JOY------------- ;------------JOY-------------
;happy happy joy joy ;happy happy joy joy
@@ -1409,6 +1416,7 @@ pressedS
; have you tried turning sfx off and on again? ; have you tried turning sfx off and on again?
lda #$ff lda #$ff
eor:sta noSfx eor:sta noSfx
ReleaseAndLoop
jsr WaitForKeyRelease jsr WaitForKeyRelease
jmp BeforeFire jmp BeforeFire