I have been looking into various game design modules for python such as pyglet and pyGame. I have noticed that both of these seem to only be compatible with python 2. Seeing as python 3 is the most current version, why is this? My experience with python has been with python 3, so are there good frameworks/modules out there for python 3 game development? Or would I be better off learning python 2 and using pyglet or pyGame?
edit: I would be using pyGame on a mac. The downloads page, http://www.pygame.org/download.shtml, only has links for py2.6, py2.5, and py2.4, which is what leads me to believe it is not python 3 compatible.
You might think it's not too different, but these more minor differences make significant in your work. So Pyglet is the better choice for game development of any scale, and If you are a beginner, you can start with Pygame then use Pyglet.
pygame works with most versions of Python, but Python 3.6 is recommended and used throughout this article.
PYGGEL (PYthon Graphical Game Engine and Libraries) is a 3d game development engine, written using Pygame/PyOpenGL.
pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games. pygame.org (the website) welcomes all Python game, art, music, sound, video and multimedia projects.
I don't even get your question, as PyGame is compatible with Python 3 since version 1.9: http://www.pygame.org/wiki/python3porting?parent=todo
There are a few minor issues, but it is usable with Python 3.
I'm developing a pygame-based application on Mac OSX with python 3. It definitely works fine, and so far I haven't run into any compatibility problems, though there are certainly other mac-specific pygame bugs that I have found.
That said, I can definitely confirm that it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With