;Block that is passable only when you have 4 (or specified number) dragon coins. ;Change the number after the CMP #$ to specify the number of dragon coins needed. print "A block that is passable only when the player has 4 dragon coins." db $42 JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireBall JMP Corner : JMP BodyIn : JMP HeadIn Corner: HeadIn: BodyIn: MarioAbove: MarioBelow: MarioSide: LDA $1420 ;Load number of dragon coins CMP #$04 BEQ GotCoins ;Branch to 'Gotcoins' LDY #$01 ;act like tile 130 (Grey cement block) LDA #$30 STA $1693 RTL SpriteV: SpriteH: MarioCape: MarioFireBall: GotCoins: RTL