[pygame] Re: Pygame2 sdlmixer documentation contribution + error

2009-08-15 Thread Evan Kroske
Here's the patch I forgot to attach; apply it to doc/src/sdlmixerbase.xml. -- Evan Kroske http://welcome2obscurity.blogspot.com/ The code, comments, and challenges of a novice software developer desperate for attention. Index: sdlmixerbase.xml

[pygame] Pygame2 sdlmixer documentation contribution + error

2009-08-15 Thread Evan Kroske
First, I have written a new documentation page for pygame2.sdlmixer. It's not complete, but it at least gives enough information to allow a user to play a sound effect. I'm pretty sure I followed all the documentation conventions, but it needs to be reviewed for correctness before it's commited. I

Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-15 Thread Lenard Lindstrom
Hi Tyler, Windows is messy. I would say just get it working properly with Unix. The Windows linkages can be worked on later. Lenard Tyler Laing wrote: Thanks Lenard, I have it compiling and linking and everything. However, the windows and the linux versions require very different library l

Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-15 Thread Tyler Laing
Thanks Lenard, I have it compiling and linking and everything. However, the windows and the linux versions require very different library linking. So right now I've got two separate lines in Setup.in, one that is for windows, and one that is for Linux. Just comment or decomment them. The problem,

Re: [pygame] Documentation changes in trunk

2009-08-15 Thread Tyler Laing
Not present yet. Will try merging tomorrow. :) On Sat, Aug 15, 2009 at 1:59 PM, Vicent Marti wrote: > This will be merged into trunk in 30 minutes, since nobody seems to > have any objections. If you merge your GSoC module after that, you'll > have to change that include line, just like any othe

Re: [pygame] Documentation changes in trunk

2009-08-15 Thread Vicent Marti
This will be merged into trunk in 30 minutes, since nobody seems to have any objections. If you merge your GSoC module after that, you'll have to change that include line, just like any other GSoC students who merge back new modules into trunk; if the movie module is already present, I'll fix it up

Re: [pygame] Documentation changes in trunk

2009-08-15 Thread Tyler Laing
This is in trunk/docs right? -Tyler On Thu, Aug 13, 2009 at 3:18 PM, Lenard Lindstrom wrote: > Vicent Marti wrote: > >> Hello there fine gentlemen, >> >> I know you are all going to hate this, but I've had to do some minor >> changes to the documentation system on my GSoC branch for the FreeTyp

Re: [pygame] Re: sprite.spritecollide

2009-08-15 Thread Kevin
I'm pretty confident it returns the instances, not the class itself, unless the new PyGame has changed things... Here's some old code from one of my old projects to show you: hit_cells = pygame.sprite.spritecollide(shuriken, self.cancer_sprites, False) if hit_cells: for e

Re: [pygame] Re: sprite.spritecollide

2009-08-15 Thread Brian Song
Follow up with this if len(colliding_with) is not 0: for sprite in colliding_with: #will go through each sprite in colliding_with #if your sprite has a unique ID like self.id try printing print sprite.id

Re: [pygame] Re: sprite.spritecollide

2009-08-15 Thread Henrique Nakashima
If '[]' is the result of printing colliding_with, I'm pretty sure that is a list of only one instance of a Sprite. If it were the Sprite class itself if would be represented by '' or something like that, and would not contain the number of groups the sprite is in. That is also what the doc says: "