[pygame] I have a quick question... again...

2007-06-16 Thread Charles Joseph Christie II
So, if I was making a Tetris Attack clone using plain pygame and the SDL blitting functions, but later on decided that I wanted to render the blocks in 3D and add a 3D mode like Pokemon Puzzle League for the Nintendo 64, using pyopengl, how much of the code do you think, aside from the drawing,

Re: [pygame] Smooth Scaling for Terrain Generation

2007-06-16 Thread Marius Gedminas
On Sat, Jun 16, 2007 at 12:33:10AM -, [EMAIL PROTECTED] wrote: I fiddled with a different terrain generation algorithm, this one based on using Pygame to do something like Conway's Game of Life. That is, I draw some random shapes of grass on water on a 100x100 image, then iterate each

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Laura Creighton
In a message of Sat, 16 Jun 2007 09:22:26 EDT, Charles Joseph Christie II write s: So, if I was making a Tetris Attack clone using plain pygame and the SDL blitting functions, but later on decided that I wanted to render the bloc ks in 3D and add a 3D mode like Pokemon Puzzle League for the

[pygame] Playing mp3s

2007-06-16 Thread Will McGugan
Hi, The docs seem to imply that pygame.mix.music can play MP3s, but when I try to load any of my mp3s I get a 'Module format not recognized' error. OGGs work fine. Does PyGame not support mp3 - or is there something odd about my mp3s? Will

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Casey Duncan
On Jun 16, 2007, at 8:56 AM, Laura Creighton wrote: [..] If you use Model-View-Controller like separation of your code, None. All your changes will be in the drawing. I'm curious how many of you actually employ MVC using pygame, since the library encourages mixing the model and view via

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Laura Creighton
In a message of Sat, 16 Jun 2007 09:32:09 PDT, Casey Duncan writes: On Jun 16, 2007, at 8:56 AM, Laura Creighton wrote: [..] If you use Model-View-Controller like separation of your code, None. All your changes will be in the drawing. I'm curious how many of you actually employ MVC using

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Marius Gedminas
On Sat, Jun 16, 2007 at 09:32:09AM -0700, Casey Duncan wrote: On Jun 16, 2007, at 8:56 AM, Laura Creighton wrote: [..] If you use Model-View-Controller like separation of your code, None. All your changes will be in the drawing. I'm curious how many of you actually employ MVC using

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Charles Joseph Christie II
On Saturday 16 June 2007 01:18:49 pm Marius Gedminas wrote: On Sat, Jun 16, 2007 at 09:32:09AM -0700, Casey Duncan wrote: On Jun 16, 2007, at 8:56 AM, Laura Creighton wrote: [..] If you use Model-View-Controller like separation of your code, None. All your changes will be in the

Re: [pygame] Playing mp3s

2007-06-16 Thread Will McGugan
Patrick Mullen wrote: Mp3 support, certain font support, and other things seem to be very platform specific with pygame recently, I'm not sure if it's always been that way, but it certainly is now. As far as I know, .ogg's don't have any issues, but I have seen a perfectly good mp3 play on

Re: [pygame] Game Objects 0.0.2

2007-06-16 Thread Will McGugan
Marius Gedminas wrote: I liked the blog entry and started looking around in the svn repository browser (no syntax highlight, *sigh*). I think there's a bug in ColorRGBA.grey: the 'a' argument (alpha?) is required, but never used. Yeah, fixed that in my local version. I'm somewhat

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Marius Gedminas
On Sat, Jun 16, 2007 at 01:27:37PM -0400, Charles Joseph Christie II wrote: I don't know about canonical, but PySpaceWar uses pure MVC. I think; I never fully understood the controller part of it; my views are often also controllers.

Re: [pygame] Playing mp3s

2007-06-16 Thread Charles Joseph Christie II
On Saturday 16 June 2007 04:51:52 pm Ulf Ekström wrote: Many linux distros cannot legally distribute mp3 decoding software (patent?), so sdl (mixer) is compiled without mp3 support on those platforms. Use ogg if you can, it sounds better anyway. Regards, Ulf Of course, after you install MP3

Re: [pygame] Game Objects 0.0.2

2007-06-16 Thread Richard Jones
On Sun, 17 Jun 2007, Will McGugan wrote: Marius Gedminas wrote: I'm somewhat surprised that your r/g/b/a setters perform an isinstance check and explicitly require a float. What's wrong with accepting ints (0 or 1)? I want to use floats internally, so that it will always use float

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Charles Joseph Christie II
On Saturday 16 June 2007 04:25:59 pm Marius Gedminas wrote: On Sat, Jun 16, 2007 at 01:27:37PM -0400, Charles Joseph Christie II wrote: I don't know about canonical, but PySpaceWar uses pure MVC. I think; I never fully understood the controller part of it; my views are often also

Re: [pygame] Game Objects 0.0.2

2007-06-16 Thread Richard Jones
On Sun, 17 Jun 2007, Richard Jones wrote: I presume you were just calling float(value)? I'm surprised that is slower than invoking isinstance() if value is a float. And a quick check tells me my gut was about right: there is no time difference between these if value is a float: $ python -m

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Greg Ewing
Charles Joseph Christie II wrote: So, if I was making a Tetris Attack clone using plain pygame and the SDL blitting functions, but later on decided that I wanted to render the blocks in 3D and add a 3D mode like Pokemon Puzzle League for the Nintendo 64, using pyopengl, how much of the code do

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Greg Ewing
Casey Duncan wrote: I'm curious how many of you actually employ MVC using pygame, since the library encourages mixing the model and view via sprites. I always try to separate the application logic from the user interface in any kind of program I write, including games. I've never tried to

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Greg Ewing
Laura Creighton wrote: But I am using pygame to make 3-dimentional models of things in biology and chemistry mostly. I rarely need to have to hunt down my molecules and kill them. :-) Well, I don't know... those free radicals can be nasty buggers to have around... Hmmm... maybe there's an

Re: [pygame] Game Objects 0.0.2

2007-06-16 Thread Greg Ewing
Will McGugan wrote: I _could_ simply wrap the setter value with float(), but that would leed to the situation where you could do col.r = 20 - which is just wrong. You could force it to a float by multiplying it by 1.0. That would work on ints but not strings. -- Greg

Re: [pygame] I have a quick question... again...

2007-06-16 Thread Charles Joseph Christie II
On Saturday 16 June 2007 09:36:11 pm Greg Ewing wrote: Charles Joseph Christie II wrote: So, if I was making a Tetris Attack clone using plain pygame and the SDL blitting functions, but later on decided that I wanted to render the blocks in 3D and add a 3D mode like Pokemon Puzzle League