Toolkit Options for 2D Python Game Programming [cl

2019-03-12 18:27发布

What are some toolkits for developing 2D games in Python? An option that I have heard of is Pygame, but is there anything that has more range to do more things? What are the good and bad parts about the modules?

8条回答
老娘就宠你
2楼-- · 2019-03-12 18:37

A followup question:

Can't I just code a simple 2D game inside some existing graphic/windowing toolkit like the excellent wxPython ?

I will benefit from the ready-made GUI widgets that can wrap the graphics in my game, while with pyGame I have to develop those myself.

查看更多
对你真心纯属浪费
3楼-- · 2019-03-12 18:38

I think pygame is the standard for game development in Python, I don't know of any others. A book you may be interested in is Game Programming with Python, Lua, and Ruby. Not only does it cover Python (and, I believe, the pygame module), but it also gives you exposure to Lua and Ruby. It's also available on books24x7 if you have a subscription there.

查看更多
Anthone
4楼-- · 2019-03-12 18:43

I use pygame myself and it is very good. It has good documentation and tutorials, and is quite well designed. I've also heard wonderful reviews of pyglet.

查看更多
倾城 Initia
5楼-- · 2019-03-12 18:45

Another option is pycap which is a wrapper for the popcap framework with Python.

查看更多
Bombasti
6楼-- · 2019-03-12 18:46

A blog post covering several of the alternatives, including PyGame, PyCap, SpriteCraft, and ika. I have also seen pyglet mentioned.

You may also want to look at Panda, which is a very easy to use 3D engine with Python bindings. It is used for rapid prototyping at Carnegie Mellon's ETC.

查看更多
【Aperson】
7楼-- · 2019-03-12 18:51

I've only heard people talk about pygame. It has tons of followers & plenty of functionality.

Recently I saw this book at barnes & noble which I might check out one day. It looked good.

查看更多
登录 后发表回答