It never involves writing C/C++ code unless you really want it to. I'm
writing an extremely performance sensitive game in Python using OpenGL
and TONS of physics math. I've not written a single line of C because
all the performance-sensitive operations can be done it libraries that
already exist. You'd be hard-pressed to present a situation in which
writing your own C library for Python would be the best option when
making a game.
-Zack
On Apr 18, 2009, at 1:38 PM, Yanom Mobis wrote:
So writing a game in python and pygame usually doesn't involve
writing C/C++ code?
--- On Fri, 4/17/09, J Dunford <smilecha...@smilechaser.com> wrote:
From: J Dunford <smilecha...@smilechaser.com>
Subject: Re: [pygame] C/C++ and Python
To: pygame-users@seul.org
Date: Friday, April 17, 2009, 4:51 PM
On Fri, Apr 17, 2009 at 3:10 PM, Yanom Mobis <ya...@rocketmail.com>
wrote:
I've heard some games are made with C/C++ and Python together. Where
does Pygame fit into this?
That really depends on the game. Some games, such as Civilization
IV, use Python as an embedded scripting language. This allows the
developer to write the performance intensive parts in C/C++ and the
game logic in Python.
Users of pygame generally operate in the reverse direction. They
have a Python program that deals with all the high-level concepts,
but then delegates the fiddly low-level stuff to the Pygame library.