Live data from Hacker News

Running Pong in 240 browser tabs

eieio.games

11–20 of 36 posts

Re: Running Pong in 240 browser tabs

#11
I attended Nolen's recent talk at Recurse, and these absolutely mad but fundamentally funny and cool games as one-shots are so delightful.

It reminds me of the older internet, when people would make things just to be silly and have fun. I had some fun last night inspired by some of the stuff he has been posting making a very funny kind-of-quine that outputs its own source code of the page showing it, via BEAM decompilation and some other tricks. I wish I had the time to crank out things like this, and it makes me smile to know that there are people out there creating things in this manner that will just keep things interesting for all of us.

The piece that gets the sort-of quine is here, if anyone wants a laugh https://github.com/notactuallytreyanastasio/blog/blob/main/l...

Re: Running Pong in 240 browser tabs

#13
ah hi! I made this! was wondering if this one would appeal to the HN crowd :)

Happy to answer any questions! And here are a couple of scattered thoughts:

    * I'm really interested in what this looks like if you use animations (firefox supports animated favicons) - I could, for example, anticipate future ball positions and create animated SVGs to get a much nicer framerate.
    * A friend pointed out offline that canvas rasterization (typically) is on the GPU, which is probably why my performance intuitions with my stuttering animation were so wrong
    * I am only moderately confident that chrome caps favicon updates to 4 a second; I know there are a lot of different ways to update favicons and I could have missed something here!

Re: Running Pong in 240 browser tabs

#14

I'm calling it - Doom is next.

Doom is kind of a pain because:

    * afaik I'm capped at 4 FPS (just how often you can update tabs)
    * more of the screen is likely to update on each frame, which requires way more "turning canvases into data urls to update favicons," which is expensive with my current implementation (although I wasn't aware of offscreencanvas, which might help here)

Re: Running Pong in 240 browser tabs

#16
post #13

ah hi! I made this! was wondering if this one would appeal to the HN crowd :) Happy to answer any questions! And here are a couple of scattered thoughts: * I'm really interested in what this looks like if you use animations (firefox supports animated favicons) - I could, for example, anticipate future ball positions and create animated SVGs to get a much nicer framerate. * A friend pointed out offline that canvas ras…

> A friend pointed out offline that canvas rasterization (typically) is on the GPU, which is probably why my performance intuitions with my stuttering animation were so wrong

Did you solve it? A great resource is Jake Gordon's blog on simple JavaScript game design. He uses a double buffer front and back canvas game loop.

[0] https://jakesgordon.com/writing/javascript-pong/part1/

Re: Running Pong in 240 browser tabs

#19
post #13

ah hi! I made this! was wondering if this one would appeal to the HN crowd :) Happy to answer any questions! And here are a couple of scattered thoughts: * I'm really interested in what this looks like if you use animations (firefox supports animated favicons) - I could, for example, anticipate future ball positions and create animated SVGs to get a much nicer framerate. * A friend pointed out offline that canvas ras…

[deleted]

Re: Running Pong in 240 browser tabs

#20
post #13

ah hi! I made this! was wondering if this one would appeal to the HN crowd :) Happy to answer any questions! And here are a couple of scattered thoughts: * I'm really interested in what this looks like if you use animations (firefox supports animated favicons) - I could, for example, anticipate future ball positions and create animated SVGs to get a much nicer framerate. * A friend pointed out offline that canvas ras…

As one ridiculous-pong writer to another, I love your work. I really enjoy this kind of technical performance art, both to write and to view. It may also be part of why I juggle: "There must be a harder way to do this."
Post reply on HN