Python for Commercial Games?

Pete Shinners shredwheat at mediaone.net
Fri Jun 29 12:48:53 EDT 2001


"Dirk Krause" <d_krause at pixelpark.com> wrote
> Maybe it is even possible to write a pygame2sdl converter (could this
> be? Pete?)

hmm, it would be a bit of work, but i don't know if it would be
worthwhile. for the most part pygame is pretty 'thin'. it just boxes
up your python arguments and sends them off to the SDL api. there
are parts of the code where the pygame code is thicker, but none of
that will be found in the performance heavy portion of the code.

more of the work would involve changing your sprite and game python
classes into c/c++ code. there's just too much stuff you do with
your python objects that isn't readily available in c.






More information about the Python-list mailing list