Dynamic Pong Wars

(markodenic.tech)

28 points | by rendall 7 days ago ago

5 comments

  • urbanisierung 34 minutes ago 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/

    • culi 7 minutes ago 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

  • RunSet 22 minutes ago ago
  • pohl 3 hours ago 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.

  • mock-possum 4 hours ago 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?