Re: [pygame] Licensing

2008-07-02 Thread techtonik
On Mon, Jun 30, 2008 at 7:58 AM, James Paige [EMAIL PROTECTED] wrote: I notice LGPL is used on a lot of pygame projects. Is that because pygame itself uses LGPL? It makes sense for pygame to use LGPL because it's a huge, widely used library but it's not apparent as to why the game

Re: [pygame] Mixer Quit / Restart

2008-07-02 Thread Lenard Lindstrom
Did you try calling Channel.stop before calling quit? Lenard Wyatt Olson wrote: This seems to work. It would be nice to be able to re-init the mixer, in case there were different bitrates, but if that can't work, I can just specify that the samples must all be the same bitrate. Thanks for

Re: [pygame] Mixer Quit / Restart

2008-07-02 Thread Wyatt Olson
I have not done that, as I don't keep track of channels after they are obtained and started playing. Is there anything which can return a list of all currently active channels? Now that being said, in my real program, I am able to recreate the bug even when waiting for all currently playing

[pygame] Float precision

2008-07-02 Thread OsKaR
Hi all, I've been trying to rotate and move forward a tank in a game I'm developing but something strange happens. When the tank is rotating and moving it tends to move to the up-left corner and I don't know why. Anyone knows what's happen? Thank you all! Here is the code: def

Re: [pygame] Float precision

2008-07-02 Thread Ian Mallett
Try reversing the sin and cos. Cosine resolves x direction and Sine resolves y. You have it backwards. Also, if you want to flip the screen coordinates, the y must be negative. You also might want to try working with the movements one at a time to isolate problems. Ian

Re: [pygame] Float precision

2008-07-02 Thread Ian Mallett
P.S., you may want to convert your angles to radians with math's handy radians() function.

Re: [pygame] Mixer Quit / Restart

2008-07-02 Thread Ian Mallett
On 7/2/08, Wyatt Olson [EMAIL PROTECTED] wrote: Is there anything which can return a list of all currently active channels? pygame.mixer.get_num_channels() This returns 0 if none are playing and 0 if there are.

Re: [pygame] Mixer Quit / Restart

2008-07-02 Thread Wyatt Olson
This appears to get the total number of channels, not the number of active channels. However, I tried using get_busy(), but it still does not seem to work. See the following modifications to my original code: import pygame, time for x in range(10): print(Starting iteration + str(x))