;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;Money is Life ;;by Superyoshi ;; ;; This sprite takes away 1 coin each second. If the Coin Counter hits 0, you die. ;; ;;Uses first extra bit: NO ;;Insert it as a generator (sprite number from D0 to FF). ;; ;;You need to give credit. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; sprite data ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; sprite init JSL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; dcb "INIT" LDA #$37 ; time beetween taking coins - 37 = one second STA $7EC100 RTL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; sprite code JSL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; dcb "MAIN" LDA $7EC100 DEC A STA $7EC100 BNE RETURN LDA #$37 ; time beetween taking coins - 37 = one second STA $7EC100 LDA $0DBF CMP #$01 BCC NOMONEY BRA MONEY RETURN: RTL NOMONEY: STZ $0DBF JML $00F606 MONEY: DEC $0DBF LDA $0DBF CMP #$0B ; change 0B to where you want the Warning Sound to begin + 1 BCC WARNING ; comment this out to diable Warning Sound RTL WARNING: LDA #$2A STA $1DFC RTL