Skip to content
项目

关于

这是白昼与黑夜、善与恶之间的永恒之战。使用 JavaScript 编写,部分 HTML 和 CSS 集中在一个 index.html 文件中。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
+1
7天
+1
15天
0
1个月
0

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Pong Wars

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.

https://github.com/vnglst/pong-wars/assets/3457693/4eae12fa-bdc1-49ee-8b39-c94deb7cb2c8

Development

Run:

npx serve

Open up the link and you're ready to start.

Credits

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.

Submitting PRs

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.

Links

Alternate version

If you've created an alternate version of Pong Wars and would like to share it, please feel free to create a pull request to add the link here.

The alternate versions are listed below in alphabetical order:

探索相关项目

加载中…