PyPong:用 Python 制作的乒乓球!

时间:2021-07-02 14:16:44
【文件属性】:
文件名称:PyPong:用 Python 制作的乒乓球!
文件大小:35KB
文件格式:ZIP
更新时间:2021-07-02 14:16:44
Python 乒乓球 用 Python 制作的乒乓球! 控件 使用 W 和 S 与 AI 对战。 按 R 接收新球。 玩伙伴 如果你想和你的朋友一起玩,你可以删除AI代码。 转到代码并删除第 72 行到第 75 行。 如果 ballposition [1] > p2YPosition + 10: p2YPosition += 10 elif ballposition[1] < p2YPosition - 10: p2YPosition -= 10 游戏目前包含一些小故障,将予以修复。
【文件预览】:
PyPong-master
----Images()
--------bg.png(28KB)
--------ball.png(1KB)
--------paddle.png(953B)
----.idea()
--------scopes()
--------Pong.iml(286B)
--------misc.xml(217B)
--------vcs.xml(166B)
--------.name(4B)
--------modules.xml(262B)
--------encodings.xml(166B)
--------workspace.xml(29KB)
----README.md(470B)
----pypong.py(3KB)

网友评论