Dynamic Pong Wars
28 points
7 days ago
| 4 comments
| markodenic.tech
| HN
urbanisierung
26 minutes ago
[-]
This is super cool! I saw the tweet last weekend and decided to (let) build it as well, but with more players: https://pong.u11g.com/
reply
culi
24 seconds ago
[-]
add `filter: blur(20px)` on the canvas, slow the balls down and don't render them and you have a really nice lava-lamp-esque background effect
reply
RunSet
15 minutes ago
[-]
reply
pohl
3 hours ago
[-]
Very cool. It eventually got stuck for me, too, towards the bottom. Stuck detection would be a next step.

Then you could plot the change in score for the current war, and overlay other plots that different wars took.

reply
mock-possum
3 hours ago
[-]
Haha mine bounced around a bit until they managed to get stuck on eachother right in the middle

It’d be fun to see a line graph mapping the change in score over time - I wonder what the wave function would simplify to? Would it be a sine wave? Or more of a saw, as one side snowballs ahead, then the other inevitably ramps up to recover?

It’d also be cool to save the board state on each step, to find what the board looked like when each side was farthest ahead of the other, and when they were equal - and to play back the entire profession at super speed. Would it look like slime mold pulsing, expanding and contracting? Would there be swirls of white cutting into black and vice versa?

reply