Python Game Libraries [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
First off please do not mark this topic as a duplicate. All the relevant threads are years old. I would like updated information.
What are the pros and cons of the following libraries?
I am aware of:
PyGame, seems to be the most popular but the website is full of
broken links and no news in awhile.
Cocos2D Python, Seems good as cocos2D is all the rage right now.
Almost no support though and the stack overflow pages only seem to
get a post every couple weeks.
Pyglet, This is the only one I never tried as Cocos2D seems to use
Pyglet. Seems to update more then the cocos2D python stack overflow
but less then the pygame.
Other? Rate a better library!
I am looking for information on ease of use, preferably pythonic and up to date. But perhaps most importantly active.

Pygame and Pyglet are definitely on the radar.
Pygame
Great, popular game engine. No support for a variety of file types. But it's no longer maintained.
Pyglet
Very powerful, high support for many files. Thorough documentation. OpenGL support, intuitive.
Cocos2D
I really feel that Coco2D is just an unnecessary medium to use the underlying Pyglet engine.

After working with Pygame, Cocos2d, and Pyglet to create a series of games, I would have to recommend Pyglet.
Cocos2d and Pygame were very unwieldy. On the other hand, pyglet has a very neat API, enjoyable to work with, and very 'clean'.
It also has no external dependencies, and is wrapped on top of OpenGL, allowing you to do some pretty advanced special effects.
You can view a game (along with the source code) I created with Pyglet here.

Related

How do I do graphics in Python? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
So I made some games in Python, but they are all text-based because I can never find out how to do graphics. I have done a bit of searching, and the answers that I have found either don't work or don't answer my question. I am wondering how to use graphics and implement them in code, such as if a red dot touched a blue one the red one will turn green, or if I press the up arrow key the red dot will move up. I know that is a lot to ask, so I am wondering if there is a website or something that can tell me where and how to start.
As #Axe319 mentioned you can use, pygame, Tkinter, or turtle although there are more. You can find information on pygame here https://www.pygame.org/news, but if you have a Mac it can be tricky to use. Pygame is probably more of the more popular ones to use, however more recently people have been using other modules. tkninter is usually used for GUI, but you can use it to make some games. Turtle graphics as he said again are minimal and I have only used them to make pictures, but I know people have made games. Based on what you wrote Pygame, or Tkinter would work best, and if it is simple enough use tkinter. They both have plenty of tutorials on the internet if you need help.

Can Python with turtle and tkinter replace NetLogo? Which is worth more the time? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I never went too far into NetLogo, and being a novice in Python I started looking into the turtle module, aiming towards ABM. I have seen some simple implementations of the turtle module (turtledemo and YouTube) but none were comparable to NetLogo library's examples. I went over (once) the mesa tutorials and it seemed interesting but, as it says, more advanced stuff require Javascript. I've also read that NetLogo is fast to pick up.
Considering the above, and adding your own experience, could NetLogo be a better choice than Python? Could you estimate how hard each path would be? Do you have any other suggestions?
I teach ABM. I used to use Python for my course,
using a module that provides some NetLogo-like functionality:
https://raw.githubusercontent.com/alan-isaac/econpy/master/abm/gridworld/gridworld.py
I gave that up. Although Python is a great language for
teaching programming, NetLogo is a much better language for
teaching ABM. (Both started out as teaching languages,
very roughly speaking, and became much more.) It is very
easy to get started with NetLogo. It's builtin facilities
also support very sophisticated model building. These facilities
can be extended when needed.

Can I find a way to build interactive animation using Python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm not very good in Python and just used several times before. I used PYQT and python to make an interface for controlling out-side devises.
I'm wondering whether Python can make an interactive animation something like Flash produces. I searched and found some suggestions: HTML5, Pygame and Tkinter. I have no idea about how those things work with Python.
Does someone can give some advises? Thank you!
In my opinion Pygame the best library in Python3. You can do all things that you want, but you need to work in the hard-way, control main_loop, work with messed up classes and perhaps needs some OpenGL basic functions.
Tkinter is a good lib to make softwares, but to work with graphics is badly. Is easy, have a lot of tutorials in net, you don't need to work directly to main_loop... But is limited, in some step you will stuck and take the double of time to figure out.
You should be use Pygame or Pyglet (Similar to pygame, but still updated and more organizated -- doens't have much tutorials on net, so if you are begginer don't try this before pygame).

Why is it easier to program games in Pygames and not Python alone? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Im new to Python and I am getting to grips with it.
I have a question: why is Python it self not used to develop games? I can see why Pygame games is used, due to ease of loading images on to the screen for example. If I was to develop a game in Python, would it mean I would have to manually display images to the screen? Or do Python also provide these set of libraries?
For example in Pygame you would have:
pygame.image.load("image.jpg").convert()
to load an image to the screen.
If I was to do this in python, would I have to manually load images? Read from a file then display? Is this all done in the underlining code for Pygame?
Well as you are progressing more into game development you'll find out that you need more and more things in order to do what you have in mind. What pygame and all these dev kits do, is that they've already done the work for you.
If you are going to create a serious game,you'll need collision modules, animation modules, sprite loading modules, maybe music and video, controls and more.
Without pygame you'll have to create all of them from scratch :P.
I don't know about the inners of Pygame and to be honest i haven't used it, but i can assure you from my experience in game development that its a real PAIN to make anything from scratch so eventually you'll need something as a base for your game. Thats why there are so many game engines around ;)
Unless you are a python prodigy or something :P

Is there any graphics library in a higher level than OpenGL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am looking for a graphics library for 3D reconstruction research to develop my specific viewer based on some library. OpenGL seems in a low level and I have to remake the wheel everywhere. And I also tried VTK(visualization toolkit). However, it seems too abstract that I need to master many conceptions before I start. Is there any other graphics library? I prefer to program in python. So I would like the library has a python wrapper. I think something like O3D would be better. But O3D is for javascript and it seems that Google already stops the development.
Panda3D seems to be a nice 3D graphics library designed to be used in Python, although it's mostly game oriented. I've browsed the manuals a few times and it's very polished and of a high quality, it has even been used in some big studio's games (like Disney's Pirates of the Caribbean online, if I remember well).
Have you tried Pyglet with PyOpenGL? The two goes very well together. Wheaties' suggest is quite good as well, although PyOgre also has a steep learning curve, as it is indeed higher-level. On another thought, there is also PyGame, which is a Python wrapper of SDL.
I personally prefer PyOpenGL, and you can use WxPython or PyQT to create your rendering context.
Also, there is PyProcessing, which is still in early stages, but very, very nifty.
You could try mlab / Mayavi (a wrapper for VTK). There's some examples here: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html
I have no personal experience with this, but I have heard some decent things about Pyglet
I used openGL with C++ a few years back - found it quite low level. I also have used Java3D which seemed to be a bit higher level. If you are not stuck on using python - try Java3D - very simple to get up and running.

Categories

Resources