🔒 Locked
Commercial games using Python?
Advertisement
Original Post
Hi, I'm having an argument with someone who believs Python isn't appopriate for game development... I know for a fact it is used in several commercial games... can anyone name some of them for me? Didn't dungeon siege use it? What about non-commercial or amatuer games? Thanks
EVE Online heavily uses Python(Stackless Python, to be exact) for pretty much anything except the graphics engine IIRC. Civilization IV uses it for some things too.
Yeah Civ4 is pretty much one of the big name games that uses it and I think they even have some sort of SDK that uses it.
Just don't think that most of the game is written in Python. Especially the graphics or anything time critical or intensive.
It's uses where appropriate most likely in scripting scenario's etc.
Just don't think that most of the game is written in Python. Especially the graphics or anything time critical or intensive.
It's uses where appropriate most likely in scripting scenario's etc.
Quote:
Original post by daviangel
Yeah Civ4 is pretty much one of the big name games that uses it and I think they even have some sort of SDK that uses it.
Just don't think that most of the game is written in Python. Especially the graphics or anything time critical or intensive.
It's uses where appropriate most likely in scripting scenario's etc.
Quote:
Soren Johnson, lead designer, Civilization IV
We chose to use python because we wanted a well-supported scripting language that could extend our core code. Indeed, we wrote much more code in python than we were expecting, including all in-game screens and the main interface. It was a huge win for the project because writing code in a language with garbage collection simply goes faster than writing code in C++. The fact that users will be able to easily mod the interface is a nice plus as well. The downside of python was that it significantly increased our build times, mostly from linking with Boost.
Quote:
Original post by Jack9
Python's great, but you can't use it for graphics. You have to fallback to C for efficient texture handling and rendering. I'll go with a pure C/C++ engine for 2D or even Java for 3D when faced with that.
That's not true. Python is entirely capable of 2D graphics, as well as plenty of 3D stuff. Just look at some of the games made with PyGame.
Quote:
Original post by Ra Quote:
Original post by Jack9
Python's great, but you can't use it for graphics. You have to fallback to C for efficient texture handling and rendering. I'll go with a pure C/C++ engine for 2D or even Java for 3D when faced with that.
That's not true. Python is entirely capable of 2D graphics, as well as plenty of 3D stuff. Just look at some of the games made with PyGame.
Pygame is a wrapper for SDL though, which is implemented in C.
Not that it matters anyway, as long as I can use it as a regular Python module with regular Python objects it could be implemented in COBOL for all I care. Much of the Python standard library is implemented in C anyway, and for good reason.
I myself am writing a 3D racing game a-la F-Zero using PyOgre and Newton for physics and it's going great. I will eventually push some of the number-crunching stuff into C++ of course, but that's the way I see it anyway. Use Python for the really important stuff and C/C++ for your errands.
[Edited by - mikeman on December 31, 2006 11:27:34 PM]
Python is also used in the medical industry (including the device I am presently working on) which involves a great deal of computation and rendering. Sure, you might have to make the jump to C or assembly once in a while, but from what I have experienced the vast majority of code does not fall into that category.
As for your argument with your friend, who cares? Everyone is convinced they have to exclusively use C++ for the execution speed so use that against them and develop something in a fraction of the time.
As for your argument with your friend, who cares? Everyone is convinced they have to exclusively use C++ for the execution speed so use that against them and develop something in a fraction of the time.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement