Advertisement
Guest User

Untitled

a guest
Jan 13th, 2022
14,796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function autoPlay() {
  2. const fakeClick = {
  3. preventDefault: function() {},
  4. stopPropagation: function() {}
  5. }
  6. const ballAngle = loopTapApp.getBallAngle();
  7. if (ballAngle + 6 > loopTapApp.arc[0] && ballAngle - 6 < loopTapApp.arc[1]) {
  8. loopTapApp.tap(fakeClick)
  9. }
  10. }
  11.  
  12. const autoPlayer = setInterval(autoPlay, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement