;Trigger if moving against the side of the block, by GreenHammerBro. ;Not to be confused with triggering if touching the side of the block, ;like the muncher or spikes from smw, this code will only run if mario ;is forced into or moving towards the block by either X speed or if ;mario's X position has been incremented/decremented towards (by ;"wind" or "conveyor belt") the side. If mario isn't moving against ;the side, it will do nothing, reguardless if touching the side or ;not. marioSide: REP #$20 ;\If mario's block hitbox is not at least a LDA $9A ;|pixel overlapping the block's hitbox, AND #$FFF0 ;|then return. SEC : SBC #$000E ;| CMP $94 ;| BCS return16bit ;| CLC : ADC #$001A ;|> this means #$0C if starting at #$00 CMP $94 ;| BCC return16bit ;| SEP #$20 ;/ ;[Insert your code here] RTL return16bit: SEP #$20 RTL