So... anyone doing any stuff in Python/Pygame...?

Member
Posts: 257
Joined: 2004.06
Post: #1
I've recently started dabbling in pygame by recreating my OMG entry (Chemical Bonds) in Python and I'm planning on doing a couple other projects as well. Python is certainly an interesting langauge and it certainly feels like I'm writing less code than I would in C++. However, I don't hear much about people using it around here, except for maybe Dangerous High School Girls in Trouble! So I guess what I'm looking for is people's experiences with Python and pygame and selling games written in it -- one of the things I haven't gotten around to figuring out yet is whether or not I can include a donation reminder that can be deactivated with a registration code.

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Moderator
Posts: 682
Joined: 2002.11
Post: #2
I've used it, but it was too slow in windowed mode for my taste. Also, its rotation scheme is idiotic - image quality degrades as you rotate unless you first reset rotation.

My web site - Games, music, Python stuff
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
PyGame is just SDL, so you can use OpenGL perfectly well. Certainly I wouldn't use SDL's 2D blitting for anything much.
Quote this message in a reply
Apprentice
Posts: 10
Joined: 2006.01
Post: #4
The problem with OpenGL under pygame is you lose some cross-platform support. Lots of PCs don't have OpenGL installed. This is a mac-centric board, so I don't think most here will worry about it, but for commercial products, it's worth knowing.
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #5
Doesn't OpenGL 1.2 ship will all Windows?

And most people under linux have OGL (mesa?) installed I'd say (in my ignorant opinion).
Quote this message in a reply
Apprentice
Posts: 10
Joined: 2006.01
Post: #6
Here's the answer, I think. It's from Mark Salloway's XP resource center.

Quote:OpenGL for games in Windows XP

For OpenGL hardware accelerated games to work correctly your video cards driver must include OpenGL support in addition to having a video card that supports OpenGL instructions. The great majority of cards support OpenGL, some integrated video chipsets and older video cards (made before 1998) may not or do but at very slow speeds.

The video drivers on the Windows XP CD-ROM (That are installed by default) do not support any form of hardware accelerated OpenGL, so even if your card does, games will fail to run until you install an updated driver from your video cards manufacturer. What would happen in this case would be the game might spot the software mode OpenGL renderer that ships as part of Windows (for certain Screensavers, not suitable to run hardware accelerated OpenGL) and attempt to use it which would bring up the opengl sub system load failures type errors which often appear on the Windows XP Games newsgroup.

So, while Windows supports OpenGL, the video driver or card may not, and its up to our customers to make it work. Fun, eh?

That's for XP. Many, many people are still using 98, or worse. I think Vista may be okay, though. Not sure. (Nobody's sure about Vista any more. :-)
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #7
It requires drivers from the IHV, but I've not found a PC which has the appropriate Direct3D drivers but not the appropriate GL drivers yet. Not that I've had *that* much to do with Windows Wink

Windows users are so used to installing drivers for new hardware, of course they'll just run the driver installer that came with their video card, and get the GL drivers.

In any case, PyGame is SDL, so you don't get the option of Direct3D. That leaves OpenGL or nothing at all Rasp
Quote this message in a reply
Member
Posts: 204
Joined: 2002.09
Post: #8
Musenik Wrote:Not sure. (Nobody's sure about Vista any more. :-)

FYI, my OpenGL apps worked out of the box on Vista.

http://www.opengl.org/pipeline/article/vol003_9/
Quote this message in a reply
Apprentice
Posts: 10
Joined: 2006.01
Post: #9
I make products for the mainstream. The average soccer mom is not adept at installing drivers. If you're targeting gamers more elite, then you'll do well to use OpenGL. I envy you. I would love to realize the performance enhancement OpenGL provides in pygame.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #10
Your average mom has perfectly good GL drivers for her Intel GMA that came preinstalled when she bought her computer...
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #11
Well, most windows boxes don't have python, so there's no reason not to use opengl. Life is too short to blit on SDL 2d.

It's not magic, it's Ruby.
Quote this message in a reply
Moderator
Posts: 522
Joined: 2002.04
Post: #12
Nayr Wrote:Well, most windows boxes don't have python, so there's no reason not to use opengl. Life is too short to blit on SDL 2d.
Not an issue. http://www.py2exe.org/
Quote this message in a reply
Member
Posts: 257
Joined: 2004.06
Post: #13
Well, I'm mostly making 2D puzzle games and the like for a casual audience so Python/pygame seems to be working out well for me. I leave working on the hard core gamer stuff to my day job Wink

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Python for games? DEV_JS 2 2,724 Apr 12, 2013 05:15 PM
Last Post: Evan Stallings
  Python Compiler wyrmmage 3 4,175 Jul 30, 2009 10:14 PM
Last Post: wyrmmage
  Very stupid question about Python on OS X Durandal 10 8,825 Dec 17, 2008 09:33 AM
Last Post: Duane
  pygame or lingo? hertzcastle 6 4,484 Mar 19, 2008 01:13 AM
Last Post: hertzcastle
  pygame framework foosh 0 2,372 Feb 29, 2008 02:09 AM
Last Post: foosh