Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function autoPlay() {
- const fakeClick = {
- preventDefault: function() {},
- stopPropagation: function() {}
- }
- const ballAngle = loopTapApp.getBallAngle();
- if (ballAngle + 6 > loopTapApp.arc[0] && ballAngle - 6 < loopTapApp.arc[1]) {
- loopTapApp.tap(fakeClick)
- }
- }
- const autoPlayer = setInterval(autoPlay, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement