Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't pyGame or pyglet support python 3?

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.

like image 405
user539718 Avatar asked Dec 12 '10 20:12

user539718


People also ask

Is pyglet better than pygame?

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.

Which Python version is best for pygame?

pygame works with most versions of Python, but Python 3.6 is recommended and used throughout this article.

Does pygame have 3d?

PYGGEL (PYthon Graphical Game Engine and Libraries) is a 3d game development engine, written using Pygame/PyOpenGL.

Does pygame still exist?

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.


2 Answers

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.

like image 76
cemper93 Avatar answered Sep 22 '22 10:09

cemper93


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.

like image 35
Nik Reiman Avatar answered Sep 26 '22 10:09

Nik Reiman