Readit News logoReadit News
clocker · 5 months 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.
gpt5 · 5 months ago
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();};})()`

bigjobby · 5 months ago
I might to try to add this in if thats ok?
bentt · 5 months ago
That was my assumption as well and I'm sort of shattered that it doesn't work like this.
albert_e · 5 months ago
I thought that was the idea and felt the seconds seemed tab bit longer :)
bigjobby · 5 months ago
I have increased the speed a bit.
chrisweekly · 5 months ago
tab -> tad

(for the sake of non-native English readers)

Crontab · 5 months ago
That would be ideal if coupled with a mode where the paddles never miss.
wkjagt · 5 months ago
I like to imagine two actual people controlling this game, and it's their job to control time. If one misses by accident, time for everyone on earth advances a little too quickly.
empressplay · 5 months ago
Cute, I love it! Thanks for sharing this.

It would be just a little bit better though if the paddles just missed the ball when the time changes rather than entirely stepping aside.

But still wonderful, nevertheless.

waltbosz · 5 months ago
It took me a while to figure out that the time would advance when one of the paddles missed. I was also disappointed by the way it missed by intentionally moving to the top of the play field.

I wonder how difficult it would be to code it so the miss was more convincing.

mspreij · 5 months ago
I spent longer than I care to admit trying to find the player keys..
bigjobby · 5 months ago
I have adjusted that mechanic. It should be a bit more realistic now
stevage · 5 months ago
Thanks for the hint about what is interesting about this.
conception · 5 months ago
Ah! Reminded me I have one of these in storage some place.

https://www.sandermulder.com/pong_clock.html

You can still get the screensaver.

bigjobby · 5 months ago
This was my inspiration. I'd love one of these! I had to settle for the XP screensaver at the time.

I might make one using Arduino at some point

bigjobby · 5 months ago
Loved that screensaver on my XP machine
tombert · 5 months ago
I have an old TV that I bought in 2015. It's in this kind of weird situation where it's "too good to throw away but not good enough to actually use". All I have been using it for in the last six years is plugging it into servers that only have a VGA port, and I don't have any of those anymore.

I've thought about mounting it to a wall plugging in a Raspberry Pi and have it constantly rotate fun different types of clocks. Something like this seems like it could be a fit.

BobbyTables2 · 5 months ago
Wow, my only TV is from 2012!
tombert · 5 months ago
I mean none of my TVs are top of the line, I don't own any TVs that cost more than $600, but I did feel like the upgrade to 4K was worth it back in ~2018.

The TV I was referring to was extremely cheap even in 2015. It's not even 1080p, and I'm not even 100% convinced it's even 720p, despite what it says. It served us well enough when I was broke working for academia, but I upgraded everything when I was able to afford it.

Still, this TV is relatively small and could still be kind of fun for a virtual clock, so it might be nice to get a bit more life out of it.

bigjobby · 5 months ago
Hi. This is my webpage. I have added some code so the misses are so wild anymore. You may have to refresh your page or clear cookies maybe for this to take effect.

All feedback muchly appreciated and always welcome. Unless too harsh. I'll ask Reddit for more brutal feedback.

https://bigjobby.com/pong/?v=23

bigjobby · 5 months ago
Thanks for posting this. I have welcomed all the feedback and made a few changes.