I'm trying to make a generator that subtracts 1 coin from Mario every x frames, and kill him when it reaches 0. I've been trying for some time now but can't get it to work.
This is my current code:
LDA 0DBF ;Loads coin counter
JSL 00F606 ;Kills Mario if he has 0 coins
CMP #$FA ;Branches every 250 frames (5sec)
DEC 0DBF ;Takes a coin
I can't seem to find what's wrong. When testing the generator it does nothing. Doesn't subtract coins and doesn't kill Mario.
We’re looking for level designers to work on Extra Mario World