池子

时间:2024-02-29 17:24:26
【文件属性】:

文件名称:池子

文件大小:22KB

文件格式:ZIP

更新时间:2024-02-29 17:24:26

泳池 一个完全用python编写的台球游戏! 产品特点 基于二维牛顿模型的逼真的碰撞。 简单的配置文件(config.py),具有许多可变的选项,例如球的尺寸,球的颜色,球杆的长度/厚度等等。 使用旋转矩阵渲染球精灵的算法。 测试碰撞函数和其他数学相关函数。 一个小的可配置游戏菜单。 正在安装 依存关系 台球游戏需要python 3.5和模块,这些模块在requirements.txt中列出。 在基于DebianLinux发行版上安装 安装具有pip,venv和pygame依赖项的python 3.5 sudo apt-get build-dep python-pygame sudo apt-get install python-dev python3 python3-pip python3-venv 然后,克隆github代码并使用run.sh运行游戏,这将使用上述模块设置虚


【文件预览】:
pool-master
----.gitignore(30B)
----requirements.txt(23B)
----pool()
--------graphics.py(4KB)
--------ball.py(7KB)
--------cue.py(6KB)
--------physics.py(5KB)
--------__init__.py(0B)
--------gamestate.py(13KB)
--------config.py(3KB)
--------event.py(777B)
--------collisions.py(2KB)
--------main.py(1KB)
--------table_sprites.py(5KB)
----.travis.yml(248B)
----LICENSE(1KB)
----README.md(3KB)
----run.sh(871B)
----tests()
--------test_rotation_matrix.py(661B)
--------__init__.py(0B)
--------test_ball_line_collision.py(2KB)
--------test_distance.py(455B)
--------test_triangle_area.py(235B)
--------test_ball_ball_collision.py(4KB)
----.coveragerc(21B)
----test_requirements.txt(51B)

网友评论