News for hackers. Stuff that matters.
Re:Show HN: Looptap – A minimal game to waste your time by eatbitseveryday on Friday January 14, 2022 @05:08PM (#29941148)
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)

There are no comments on this comment yet.