使用pygame创建简单游戏的模块
pyplayground-ralfeus的Python项目详细描述
游乐场
模块来创建使用pygame的简单游戏。面向那些希望以有趣的方式学习Python的孩子
使用
import pyplayground
class Actor1(pyplayground.Actor):
# here you override pyplayground.Actor methods you want to use
pyplayground.Game().init((width, height)).run(Actor1())
width和height是游戏窗口的大小。在
run方法参数是参与者后代实例的实例列表。在
欢迎提出任何意见、建议、要求
- 项目
标签: