Advertisement
Guest User

Untitled

a guest
May 12th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. updateBallNoClip:
  2.   lda #horizontalMovementRight
  3.   bit ballDirection           ;check if direction to the right
  4.   bne right
  5. left:
  6.   dec ballX
  7.   jmp verticalCheck
  8. right:
  9.   inc ballX
  10. verticalCheck:
  11.   lda #verticalMovementDown
  12.   bit ballDirection           ;check if going down
  13.   bne down
  14. up:
  15.   dec ballY
  16.   jmp endUpdateBallNoClip
  17. down:
  18.   inc ballY
  19. endUpdateBallNoClip:
  20.   rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement