LookBeforeLeap

by fiskbit

Game: SMW

Description: Require careful jumps.

; If this isn't gameplay, exit.
lda $0100
cmp #$14
bne Done

; If we're not in the air, enable sprites.
lda $72
cmp #$0b
beq +
cmp #$24
bne EnableSprites
+

; We're in the air, so disable sprites.
lda $0D9D
and #$EF
sta $212C
Done:
rtl

EnableSprites:
lda $0D9D
ora #$10
sta $212C
rtl
back to listings