4 ms·
Pong Wars
- ChrisArchitect 3y agoShow HN: https://news.ycombinator.com/item?id=39159418 https://news.ycombinator.com/item?id=39159418
- blackfur 3y agoThis is more addicting than it should be.
- linsomniac 3y agoI can't stop watching...
- abetusk 3y agoOriginally saw this on Mastodon [0]. There's a source link [1]. The author also pointed to the original tweet [2]. [0] https://mastodon.social/@vnglst@hachyderm.io/111828811708684240 https://mastodon.social/@vnglst@hachyderm.io/111828811708684... [1] https://github.com/vnglst/pong-wars/blob/main/index.html https://github.com/vnglst/pong-wars/blob/main/index.html [2] https://twitter.com/nicolasdnl/status/1749715070928433161 https://twitter.com/nicolasdnl/status/1749715070928433161
- zamadatix 3y agoFantastically mesmerizing to watch. Islands occur more often than I expected and the day vs night counter at the bottom is a great touch. The color scheme is well done as well. Seemingly perfect for something like Wallpaper Engine (which supports web pages, if one wants to do this then grab the source and modify the canvas size as desired). Simple, elegant, well done. Regarding the name Atari is very protective of the "Pong" trademark and many small projects (free does not exclude it) have ended up with a notice. It's best to just name it something original and generic from the start e.g. dawn duelers (or preferably something more clever :)).
- aster0id 3y agoIs the board state centralised or randomised and locally generated/stored?
- pekim 3y agoIt's all done in the browser, and it's using Math.random. The whole thing is one single 238 line html file, that contains everything; the html, css, and javascript.
- andrerpena 3y agoI suppose it's a self balanced game and it's impossible for one side to win? If one side engulfs the other, the other side will now have an advantage.