Why use one library over another?
This is subjective question, but partly inspired by my trials to study different libraries and to choose one for the upcoming pyweek.I have used pygame and I have read the tutorials of pygame. I feel comfortable using pygame too.
Now, my question is why should I try pyglet, cocas2d or any other library?
I understand, I can supplement pygame with some additional modules which provide physics capabilities. In that case, can I choose any one of them available?
If that matters, I would like to develop on Linux, 64bit.
(log in to comment)
Comments
Other people like Box2d, but I have never used it.
Writing just for Linux is your decision to make if you want, but you should be aware that by default, lots of Python programs using PyGame or Pyglet will work quite easily on all of Mac, Linux and Windows, so small amount of effort could triple your audience.
If other Pyweek entrants do not have a Linux box to run your game on, then they will not be able to see or rate your game.
pyglet vs pygame +opengl here.
@tartley, as @Cosmologicon correctly pointed out, my development platform is Linux. Yeah, I shall be careful as not to write platform dependent code.
I found one answer for @tartley, as @Cosmologicon correctly pointed out, my development platform is Linux. Yeah, I shall be careful as not to write platform dependent code.
http://stackoverflow.com/questions/370680/differences-between-python-game-libraries-pygame-and-pyglet In the previous post, hyperlink did not come out properly.
gizmo_thunder on 2011/03/31 20:47:
pyglet allows you to work with opengl without having to install pyopengl separately.You can load the textures directly using built in functions. It's pretty much sets up the default stuff that you would do for an opengl program any way. So I prefer it. Pygame is good if you dont' want to deal with opengl. (just my opinion though)