Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- check_flashing:
- CMP #$10
- BNE .nope
- LDA player_flash
- BNE .nope
- LDA.b player_x_pos
- LDY player_x_sub
- LDX framerule
- BNE .skip_zero
- JSR .check_range
- BCS .nope
- .skip_zero:
- TYA
- SEC
- SBC .offsets_sub,x
- TAY
- LDA.b player_x_pos
- SBC .offsets_px,x
- .check_range:
- CMP #!good_pos_px
- BNE +
- CPY #!good_pos_max_sub
- BCS +
- CPY #!good_pos_min_sub
- BCC +
- LDA #$02
- STA player_flash
- ; SEC
- RTS
- +
- CLC
- .nope:
- RTS
- .offsets_px:
- db $03,$02,$02,$01,$01,$01,$00,$00
- .offsets_sub:
- db $90,$90,$30,$10,$70,$10,$B0,$50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement