Hacker News new | ask | show | jobs
by clocker 298 days ago
Great idea! Wish the speed was bit more. I think it would be cool if it takes exactly 1 second to bounce between the two paddles.
4 comments

Type this into your dev console to speed it up to one hit per second (or if you want in the URL bar, prefix it with `javascript:`)

  (()=>{const T=1;window._u0=window._u0||update;update=function(){const W=gameCanvas.getBoundingClientRect().width,dist=0.92*W,vx=Math.abs(ball.speedX)||INITIAL_BALL_SPEED;let n=(dist/vx)/(60*T);n=Math.max(1,Math.min(20,Math.round(n)));for(let i=0;i<n;i++)_u0();};})()`
I might to try to add this in if thats ok?
That was my assumption as well and I'm sort of shattered that it doesn't work like this.
I thought that was the idea and felt the seconds seemed tab bit longer :)
I have increased the speed a bit.
tab -> tad

(for the sake of non-native English readers)

I don't understand either of those words in this context!

(Maybe "a tad"?)

Yes I meant a tad and made a typo too. Apologies.
That would be ideal if coupled with a mode where the paddles never miss.