←back to thread

Pong Clock

(bigjobby.com)
175 points donohoe | 8 comments | | HN request time: 0.257s | source | bottom
1. clocker ◴[] No.45088650[source]
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.
replies(4): >>45088796 #>>45089633 #>>45092946 #>>45098330 #
2. albert_e ◴[] No.45088796[source]
I thought that was the idea and felt the seconds seemed tab bit longer :)
replies(1): >>45092905 #
3. gpt5 ◴[] No.45089633[source]
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();};})()`
replies(1): >>45093507 #
4. chrisweekly ◴[] No.45092905[source]
tab -> tad

(for the sake of non-native English readers)

replies(1): >>45095685 #
5. bentt ◴[] No.45092946[source]
That was my assumption as well and I'm sort of shattered that it doesn't work like this.
6. schoen ◴[] No.45095685{3}[source]
I don't understand either of those words in this context!

(Maybe "a tad"?)

replies(1): >>45098359 #
7. Crontab ◴[] No.45098330[source]
That would be ideal if coupled with a mode where the paddles never miss.
8. albert_e ◴[] No.45098359{4}[source]
Yes I meant a tad and made a typo too. Apologies.