【文件属性】:
文件名称:pygl-prototype:Python游戏引擎原型
文件大小:293KB
文件格式:ZIP
更新时间:2021-07-14 11:47:42
python opengl multiprocessing numpy game-engine-prototype
介绍
使用 Python、PyOpenGL、Pyglet 和 NumPy 的游戏引擎原型。 它主要是一个研究项目。
特征
可控FPS相机
完全地面碰撞和重力
动态渲染距离
动态世界生成
简单的脚本
异步数据生成
依赖关系
Python 2.7(2.7.3、2.7.6 已测试)
PyOpenGL 3.1.0
小猪 1.1.4
NumPy 1.8.1
系统支持OpenGL 2.1及以上。
安装依赖
$ pip install -r requirements.txt
运行程序
$ ./run.py
控件
正常控制
您可以重新映射全局 settings.ini 文件中的普通控件或覆盖 user.ini 文件中的全局设置。
钥匙
行动
向上
向前
下
落后
剩下
左步
正确的
向右走
空间
跳
开发控制
钥匙
行动
1
完整渲染
2
线条渲染
6
切换全屏
7
切换重力
8
【文件预览】:
pygl-prototype-master
----script.txt(62B)
----functions.py(1KB)
----player.py(3KB)
----imgs()
--------img1.png(77KB)
--------img3.png(45KB)
--------img4.png(49KB)
--------img5.png(45KB)
--------img2.png(40KB)
----profile.sh(97B)
----data.py(14KB)
----configuration.py(2KB)
----decorators.py(587B)
----settings.ini(105B)
----graphics.py(15KB)
----controls.py(6KB)
----run.py(593B)
----requirements.txt(74B)
----run_tests.sh(435B)
----.travis.yml(151B)
----interfaces.py(441B)
----LICENSE(32KB)
----shaders_data()
--------black.fs(75B)
--------hud.fs(75B)
--------red.fs(75B)
--------test.vs(90B)
--------test1.fs(126B)
--------simple.vs(202B)
----README.md(1KB)
----check.sh(490B)
----core.py(13KB)
----tests()
--------test_data.py(1KB)
----.gitignore(69B)
----shaders.py(2KB)
----test_mp.py(557B)
----camera.py(15KB)
----script.py(9KB)