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?
相关问题
- Django __str__ returned non-string (type NoneType)
- How to postpone/defer the evaluation of f-strings?
- ImportError shows up with py.test, but not when ru
- Comparing pd.Series and getting, what appears to b
- Where is the implementation of included C++/C head
相关文章
- Airflow depends_on_past explanation
- RDF libraries for Scala [closed]
- Raspberry Pi-Python: Install Pandas on Python 3.5.
- Numpy array to TFrecord
- How to split a DataFrame in pandas in predefined p
- Error following env.render() for OpenAI
- AttributeError: 'Series' object has no att
- ImportError: cannot import name 'joblib' f
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.
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.
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.
Another option is pycap which is a wrapper for the popcap framework with Python.
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.
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.