7 ms·
Pong Wars: A battle between day and night, good and bad
- hoofedear 1y agoWould love if there were some screenshots in the readme! Just my two cents :)
- Liftyee 1y agoThe neat thing about this is that it's self-balancing: if one side grows smaller, the ball bounces more often and increases how quickly it regains territory.
- Contax 1y agoSorry for the tangential, but as a non-native English speaker, and still learning... this really caught my attention: "grows smaller". It looks like a kind of contradiction. Is it common to use that instead of, say, "shrink"?
- dash2 1y agoWasn't there a version of this with the yin and yang symbol posted recently? (Also there's a 2 year old hn post of this same thing)
- zamadatix 1y agoLazy browser console hack to speed it up without locking the browser completely or rehosting: (()=>{for(let l=setInterval(()=>{},0);l;)clearInterval(l--);const c=new MessageChannel;c.port1.onmessage=_=>(draw(),c.port2.postMessage(0));c.port2.postMessage(0)})() It seems there are a lot of buggy positions which clear themselves given enough time. I managed to make it to 1,000,000 iterations without any permanent lockups (but some lasted a while)
- harel 1y agoThis was posted a while back. I thought it was beautiful: https://yoavg.github.io/eternal/ https://yoavg.github.io/eternal/
- redbell 1y agoOh, I missed that! Here's the post: https://news.ycombinator.com/item?id=45086020 https://news.ycombinator.com/item?id=45086020
- ge96 1y agoWhat happens if the balls hit each other, singularity event?
- nogridbag 1y agothis happens (using the speedup JS from another post): https://imgur.com/a/uGm4xH2 https://imgur.com/a/uGm4xH2 But I just switched back to that tab and they've become unstuck.
- pmarreck 1y agoIs there a version of this that works in a terminal and is 2-player? (Likely vibe-codeable...)
- lacoolj 1y agothis appears to be the reverse of the yin yang version someone made like a month or so ago nice to see variety :)
- mhuffman 1y agoI like it! Quick question, is the Day Pong a Master of Karate and friendship For Everyone?
- bonyt 1y agoThis is fun! Mine got stuck in a cycle for a bit, but broke the cycle just after I stopped screen recording: https://i.moveything.com/c1d941787599.mp4 https://i.moveything.com/c1d941787599.mp4