30
\$\begingroup\$

I've seen a couple of these, namely Java and C#/XNA...and I've recently been picking up Python. Which kind of made me think.

What (famous) games have been written in Python, with Pygame/Pyglet/Pyopengl?

\$\endgroup\$
4
  • \$\begingroup\$ CW is now a mod-only feature. Converted. Also consider flagging your post with that reason if you want us to get to it faster. \$\endgroup\$
    – Tetrad
    Commented Oct 31, 2010 at 12:43
  • 2
    \$\begingroup\$ Huh... I thought he was just overlooking the box, but you're right, @Tetrad, wiki is now mod-only. Seems strange, why wouldn't they allow users to apply it themselves? \$\endgroup\$
    – Cyclops
    Commented Oct 31, 2010 at 13:23
  • 4
    \$\begingroup\$ Missing in Action: the Wiki button. Apparently it was causing confusion and pain to users - next to go will be the Search button... \$\endgroup\$
    – Cyclops
    Commented Oct 31, 2010 at 17:31
  • \$\begingroup\$ Some games use Python for scripting. I heard Unreal is going to use Python, not sure if it is true, though. \$\endgroup\$
    – user712092
    Commented Aug 1, 2011 at 12:37

5 Answers 5

23
\$\begingroup\$

Eve Online is probably the biggest, and uses Stackless Python, a lightweight, microthreaded version of Python. And Civilization IV had a Python interpreter built-in, but I'm not sure if that was for scripting only, or how much of the game was written in it.

Also, Disney's Pirates of the Caribbean was written using the Panda3d game engine (which allows both Python and C++ scripting, but from googling it - Disney used Python). The engine is in C++, but then again, the Python interpreter itself also uses a lot of C code. :)

For a long list of games:

which also covers a lot of well-known games, like Mount and Blade.

\$\endgroup\$
4
  • 2
    \$\begingroup\$ The graphics engine for Eve is custom and written in C/C++, so by these requirements it wouldn't be "in Python". \$\endgroup\$
    – coderanger
    Commented Oct 31, 2010 at 18:13
  • 8
    \$\begingroup\$ @coderanger, true - but the condition (famous game && pure Python) == null - so I dropped the pure condition, whereas you dropped the famous condition. :) (Unless Galcon is famous, but I suspect Eve Online is moreso). \$\endgroup\$
    – Cyclops
    Commented Nov 1, 2010 at 15:58
  • 1
    \$\begingroup\$ Actually only the client is in C++. \$\endgroup\$ Commented Feb 28, 2012 at 21:09
  • 1
    \$\begingroup\$ @RadomirDopieralski Do you have a reference for that? I'd like to know for sure since you all disagree. Thanks. \$\endgroup\$
    – johnny
    Commented Aug 11, 2013 at 2:02
9
\$\begingroup\$

The original version of Galcon was in pure Python, though it has long since been ported to other languages (at last count there were Obj-C, Flash, and C++ versions). It does still use Python for AI via the TinyPy library, but I suppose that is "just scripting".

As a general comment, Python isn't really well suited for making a blazingly fast graphics engine. You get far more control writing the core, performance-sensitive code in C or C++ and then writing the complex game logic in Python. Python excels at the more logic related areas since its expressiveness is a productivity win over C and the drop in performance isn't an issue. This is why everyone (CCP, Panda3D, Unity, Civ4, etc) all work like this. The real question is does this count as being "in Python"? For example, in Eve everything related to the actual game (more or less) is in Python, the C++ part is just a generic game engine that handles pushing pixels and audio.

\$\endgroup\$
9
\$\begingroup\$

Frets on Fire (in addition to Galcon, which is not native Python anymore) is the only "native Python" game I can think of that achieved some degree of lasting fame.

\$\endgroup\$
4
\$\begingroup\$

Also, Battlefield Heroes, the cartoony version of battlefield (Handles most of the game logic)

And, BattleField 2 and 2142 (For logic and server controls)

http://wiki.python.org/moin/PythonGames

\$\endgroup\$
7
  • 1
    \$\begingroup\$ Source? For why should DICE write a new game/engine in Python when they have good ones in C++ already? \$\endgroup\$ Commented Aug 1, 2011 at 13:24
  • 1
    \$\begingroup\$ A link is good. \$\endgroup\$ Commented Aug 1, 2011 at 15:45
  • \$\begingroup\$ wiki.python.org/moin/PythonGames It says on the page that Battlefield Heroes uses Python \$\endgroup\$ Commented Aug 1, 2011 at 23:56
  • 1
    \$\begingroup\$ I downvoted you because you didn't provide any source or details. Now that you added that, I removed it. \$\endgroup\$
    – Tetrad
    Commented Aug 2, 2011 at 0:17
  • 1
    \$\begingroup\$ Well maybe if you looked at the same link at the top, you wouldn't of given me downvotes like you usually do! \$\endgroup\$ Commented Aug 2, 2011 at 7:36
2
\$\begingroup\$

Disney's "Toontown" and "Pirates of the Carribean Online" use the Panda3D engine with Python scripting.

http://toontown.go.com/
http://piratesonline.go.com/welcome

http://panda3d.org/

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged .