It's the eternal battle between day and night, good and bad. Written in JavaScript with some HTML & CSS in one index.html. Feel free to reuse the code and create your own version.
preview.mov
Run:
npx serve
Open up the link and you're ready to start.
I saw this first here, but it appears to be a much older idea. There's some more information on the history in the Hacknernews discussion.
The colors are based on the Mindful Palette by Alex Cristache.
I love getting feedback and PRs with improvements for this, but I also want to keep this simple and the code minimal. If you want to extend the game, feel free to create your own. If you found a way to improve the collision detection (or a better way to add some randomness), feel free to open a PR.
- Original post on Mastodon: https://hachyderm.io/@vnglst/111828811496422610
- On Twitter: https://twitter.com/vnglst/status/1751278052154179770
If you've created an alternate version of Pong Wars and want to share, feel free to create a PR to add the link here: