Re: [pygame] pygame metronome

2010-07-28 Thread Shandy (Andy) Brown
This doesn't answer your question, but if you want to look at a metronome I created: http://ezide.com/metronome/ It's only around 200 lines of code. On Tue, Jul 27, 2010 at 10:01 PM, Brian Gryder bgrydercl...@gmail.com wrote: I am working on writing a metronome with Pygame.

Re: [pygame] online game?

2010-05-19 Thread Shandy (Andy) Brown
May I also immodestly suggest my tutorial: http://ezide.com/games/writing-games.html sjbrown On Tue, May 18, 2010 at 7:26 PM, Alex Hall mehg...@gmail.com wrote: Hi all, Before I continue into the strange world of pretty graphics, I want to check that Pygame can support some sort of online

Re: [pygame] Source rect for sprites in a RenderUpdate group

2010-04-16 Thread Shandy (Andy) Brown
Sounds like you've got a filmstrip as your source image. Why not just break the filmstrip up into multiple Surfaces during the __init__ method of your Charactor sprite, and set one of the surfaces to be the current self.image? def breakup_filmstrip(filepath): ... (return a list of Surfaces

Re: [pygame] Rotation Performance

2010-01-20 Thread Shandy (Andy) Brown
Image processing commands are expensive. Best to precalculate all the rotations. Also, since it's probably regular CPython you're running, there's only ever one thread running at a time. If you're using threads, you're probably doing something wrong. On Wed, Jan 20, 2010 at 5:08 PM, Bram Cymet

Re: [pygame] Updates to my Writing Games Tutorial.

2009-11-29 Thread Shandy (Andy) Brown
Thanks, you guys, for the compliments. I'm also interested to hear criticism - particularly if there are sections that are difficult to read. I'm trained in Computer Science, not English, so if there are improvments I could make, let me know. sjbrown On Nov 24, 2009 7:17 AM, inigo delgado