Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is python good for making games? [closed]

Tags:

i hear people say python is just as good as c++ and java but i cant find many good games made in python. a few in pygames but not many

just trying to choose the right language

edit: sorry, many games really, i would love to make a roguelike, basically my dream. also an overhead rpg. nothing to complex, i dont want to reinvent the wheel but i would like to make a fun game. i have minor java experience, but like the looks of python. i dont plan on making a 3d game really.

like image 753
fullyinsane1 Avatar asked Mar 07 '11 20:03

fullyinsane1


People also ask

Can I use Python to make a game?

Creating your own computer games in Python is a great way to learn the language. To build a game, you'll need to use many core programming skills. The kinds of skills that you'll see in real-world programming.

Why is Python not used for games?

Most (but not all) people wanting to get into game development are looking for something more. A robust platform with development tools and an editor. The potential to scale from a small idea up to something large and more mainstream. Python cannot offer this, whereas game engines like Unity and Unreal can.

Is Python a good game engine?

Python for game development provides support to 2D graphics along with 3D graphics, which makes it one of the most popular languages when it comes to programming games in general. It has many libraries and frameworks available that make game development easy.


1 Answers

You should also note that Python's integration with other languages makes it extremely valuable. For instance, the Panda3D engine (http://www.panda3d.org/) allows you to write games (in 3D) in Python, and then port parts to C++ as needed. Of course, that would be overkill for your purposes, but it shows that Python is quite powerful. Also, one game that was made with that engine was a commercial Disney game, so there are large games written partially with Python. If performance is really an issue, you can also use OpenGL in Python via Pyglet (as well as PyGame too, I believe), which can alleviate the rendering overhead somewhat. And performance can be improved with libraries such as Cython that can compile a Python-esque language into a C Python extension module, and PyPy, which can JIT-compile some Python code (with restrictions). Therefore, you could easily prototype your game in Python and then improve parts later as needed.

Also, note that PyWeek is a competition for Python games, which are generally 2D, written with Pygame or Pyglet, and that can provide some sample code/examples. Finally, Frets on Fire is written in Python, and seems reasonably well-known for such a small game.

Edit: See https://gamedev.stackexchange.com/questions/5035/famous-games-written-in-python

like image 118
li.davidm Avatar answered Oct 01 '22 02:10

li.davidm