Re: [pygame] Game Objects 0.0.2

2007-06-22 Thread Will McGugan
Kai Kuehne wrote: API Documentation? Just docstrings and whatever you can glean from my blog (http://www.willmcgugan.com/category/game-objects/). Next release will have some nice epydoc generated documentation. Will

Re: [pygame] Game Objects 0.0.2

2007-06-22 Thread Kai Kuehne
API Documentation?

Re: [pygame] Game Objects 0.0.2

2007-06-17 Thread Will McGugan
Richard Jones wrote: 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 va

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] 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 t

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] 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 surpris

Re: [pygame] Game Objects 0.0.2

2007-06-16 Thread Marius Gedminas
On Fri, Jun 15, 2007 at 08:21:15PM +0100, Will McGugan wrote: > I've just uploaded version 0.0.2 of Game Objects. It has an updated > Color class and GameClock class. This release also fixes the problem > with installing from source. Let me know if you find any bugs, or have > feature suggestion

[pygame] Game Objects 0.0.2

2007-06-15 Thread Will McGugan
Hi folks, I've just uploaded version 0.0.2 of Game Objects. It has an updated Color class and GameClock class. This release also fixes the problem with installing from source. Let me know if you find any bugs, or have feature suggestions! http://code.google.com/p/gameobjects/ I also blogged