4 ms·
C++ violates the Zen of Python's axiom that "explicit is better than implicit" all over the place. C does not; it is very explicit. I would write as much as po
by mrshoe 17y ago
C++ violates the Zen of Python's axiom that "explicit is better than implicit" all over the place. C does not; it is very explicit.
I would write as much as possible in Python and use C for the performance critical stuff (which, for a game, is a large portion).
- nickpp 17y agoI see that you would, but have you? Or did anybody?
- mrshoe 17y agoI have worked on major console games and written games in both C and C++. I also maintain an open source raytracer which I've implemented in C, C++, D, and python. So yes, I speak from experience. Eve online is a great example of a game for which almost all game logic is in python (stackless). The "engine" is in C++, I think (not sure on that one). So I would adopt their model but use C instead of C++.
- bd 17y agoAlso Civilization 4 used Python extensively: http://www.python.org/about/quotes/ http://www.python.org/about/quotes/ (look for "Firaxis Games")
- omouse 17y agoI saw a game that used Python (I think, maybe it was Ruby) and then dropped down to C for the high-performance bits and it was still slow as shit because of the Python code.