Someone can help me in a code, that I thinking about how can I "lock" a passage for Mario from a block, when Mario pass at a side of a block. Like: I'm playing a game, and I put a block where the player cannot pass if him is already passed this block in the first side (from the left side, for example). See an example:
Codedb $37
rep 3 : JMP Start
rep 7 : JMP Return
JMP Start : JMP Start
Start:
LDA $7B ; \ If the player is not facing left...
BPL Return ; / Return. Else,...
LDA $72 ; \ ...if the player is not in air...
BEQ MakeSolid ; | ...act as 130.
LDA #$20 ; | Else, set speed to #$20.
STA $7B ; /
LDA #$08 ; \ Número do efeito sonoro em hex.
STA $1DFC ; / Escolha qual banco você quer.
RTL
MakeSolid:
LDA #$30 ; Act as 130.
STA $1693|!addr
LDY #$01
Return:
RTL
print "Um bloco de teste."
I'm making a block, and I need someone to help me please to I end this block and share (if other people wants to download this asm).