crazygrouptrio
Active member
Here is a very basic macro for flashing the background. First argument will choose speed of the flash (0 does a quick flash, 1 for slower. All other numbers will be a quick flash), and the second argument lets you choose the color (you'll probably want white which is #$30, but hey options are neat). I intended on making the macro more versatile so you could choose the number/more speed of flashes but that caused too many issues, but this is helpful too.
(the flashes don't capture well, but this is close to what you'll get)
Just copy the code below into a new file and save it as an ASM in your macros folder. Enjoy!
(the flashes don't capture well, but this is close to what you'll get)
Just copy the code below into a new file and save it as an ASM in your macros folder. Enjoy!
Code:
MACRO FlashScreen arg0, arg1
;arg0 = fast or slow flash? (0 for fast or 1 for slow)
;arg1 = what color of flashes? (#$30 is white)
LDA arg0
STA arg0_hold
LDA arg1
STA arg1_hold
flashScreen:
LDA bckPal+0
STA tempA
LDA bckPal+1
STA tempB
LDA bckPal+2
STA tempC
LDA bckPal+3
STA tempD
JSR doWaitFrame
JSR doWaitFrame
JSR doWaitFrame
LDA arg1_hold
STA bckPal+0
LDA arg1_hold
STA bckPal+1
LDA arg1_hold
STA bckPal+2
LDA arg1_hold
STA bckPal+3
LDA #$01
STA updateScreenData
JSR doWaitFrame
LDA tempA
STA bckPal+0
LDA tempB
STA bckPal+1
LDA tempC
STA bckPal+2
LDA tempD
STA bckPal+3
LDA #$01
STA updateScreenData
JSR doWaitFrame
JSR doWaitFrame
JSR doWaitFrame
DEC arg0_hold
LDA arg0_hold
BEQ flashScreen
ENDM