[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] image, music & sound



> 1)What kind of image format is the best for pygame? I know that pygame supports
> many format like JPEG, PNG, GIF, what should I use for my sprite?

Out of the available image formats, I'd probably choose PNG. GIF isn't 
guaranteed to be supported on every platform due to patent issues with 
LZW/Unisys garbage, and JPEG is great for photo-quality images, but PNG will 
preserve your image exactly, which with a sprite is probably what you'll 
want to do. The other less-popular formats are usually just preferred by 
people because their toolkit supports it or they know the format, but with 
pygame this isn't an issue =]

> 2)And sound effect instead? Pygame can load wav files, there is a better
> alternative?

For raw sound clips, WAV files are probably your best choice.

> 3)What format should I use use for backgroud music? midi, ogg, mp3 ...?

After MANY MANY listening tests, I am thoroughly convinced that OGG Vorbis 
is one of the best lossy formats I've ever gotten my hands on. It's clear, 
crisp, and has a nice sound even at low bitrates. MP3 is still good, but 
since just about anything for any playform should be able to play OGG files 
now, I just don't see the point. MIDI is nice if you don't want your music 
to take up much space, and you just want the note data to come out of the 
soundcard. In other words, the instruments might not sound the same, or even 
natural, but at least you get music, and the tradeoff for that is that 
there's a very small file instead of a larger file. The OGG will sound 
exact, though.

Hope I helped.

B
-- 
*  tgz@orotech.net  *  http://clickass.org  *  ICQ# 1107012  *  AIM/Yahoo: 
theGREENzebra  *  http://mp3.com/thegreenzebra
-----GEEK CODE 3.12-----
GCM/CS/IT/MU d? s: a22 C++++ UL++++ P+ L+++>$ E---- W++ N+ o K- w---$ O- M 
V-- PS+ PE Y+ PGP- t++(+++) 5- X R tv(+) b+(-) DI+++ D+ G++ e h++ r+(---) y+ 
UF*++

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org