timer

by circlefriendo

Game: SMW

Description: countdown

!timer = $7f9d1a

lda !timer
sta $0f04


; only when frame counter = 0
lda $13
and #$1f
bne end


lda !timer
dec
sta !timer
beq go_off

rtl

go_off:
lda #$05
sta !timer
sta $0f04

trigger:

end:

rtl
back to listings