Hacker News new | past | comments | ask | show | jobs | submit login

Because it had to be done:

    let robot = function () {
        const ballAngle = loopTapApp.getBallAngle();
        const arc = loopTapApp.arc;
        if (ballAngle + 6 > arc[0] && ballAngle - 6 < arc[1]) {
            window.dispatchEvent(new Event('mousedown'));
        }
    }

    var timer = setInterval(robot, 10);



at ~1600 the ball started to spin too quickly for an intersection with that 10ms timer and there were 6 balls visible at the same time with my 144hz display. fun stuff.


3 visible at ~1600 here. I then set the timer to 1ms and it got a few more points and then put the ball in the very center of the circle. When I clicked, the game ended.


Why does this autoplay cause the ball to seemingly "jump/skip"?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: