3 ms·
Pasting here in case the pastebin disappears: function autoPlay() { const fakeClick = { preventDefault: function() {}, stopPropagation:
by eatbitseveryday 5y ago
Pasting here in case the pastebin disappears:
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)