Re: [pygame] How the get a font size

2009-01-14 Thread Luca
On Tue, Jan 13, 2009 at 6:07 PM, Brian Fisher br...@hamsterrepublic.com wrote: Well in that case, it seems that knowing the size value passed to the constructor is only half of what you need to make a font at twice the size of the original. You are not missing anything Brian, if facts you are

Re: [pygame] Friction help

2009-01-14 Thread Jake b
The acceleration is changed once a second (for meters/second) this leads to very jumpy movement. I need to add a way to check how long it takes the program to loop and multiply the acceleration by that much. (I think) A quick way, is to do something like this: This allows you to define

Re: [pygame] easy way to check pygame.Color() equality?

2009-01-14 Thread Marcus von Appen
On, Mon Jan 12, 2009, Lenard Lindstrom wrote: Color equality was an oversight I corrected in Pygame 1.9.0. In pgreloaded it's implemented differently, so watch your comparisions in case you use it. Regards Marcus pgpywpjIPxaxa.pgp Description: PGP signature

Re: [pygame] easy way to check pygame.Color() equality?

2009-01-14 Thread Jake b
How so, or what do I need to watch? Meaning is it safe for now to do?: if self.color == pygame.Color(red): print 'same color!' On Wed, Jan 14, 2009 at 5:44 AM, Marcus von Appen m...@sysfault.org wrote: On, Mon Jan 12, 2009, Lenard Lindstrom wrote: Color equality was an oversight I corrected

Re: [pygame] easy way to check pygame.Color() equality?

2009-01-14 Thread Marcus von Appen
On, Wed Jan 14, 2009, Jake b wrote: How so, or what do I need to watch? Meaning is it safe for now to do?: if self.color == pygame.Color(red): print 'same color!' In the recent pygame versions you can do something like: if color == 0xff: print it's red! Comparing a color to a string

Re: [pygame] unit and doc testing questions

2009-01-14 Thread Marius Gedminas
On Tue, Jan 13, 2009 at 06:44:10AM -0600, Jake b wrote: I'm learning about doctest, and unittests. Now if I create a file, like pygame/test/rect_test.py , is there and easy way to import the project in its parent directory? Make sure it's in sys.path, then import using the absolute package

Re: [pygame] easy way to check pygame.Color() equality?

2009-01-14 Thread Lenard Lindstrom
High Marcus, I agree that comparing a color to a string was not a good idea. That can go as 1.9.0 is still pre-alpha. For backwards compatibility comparison with a tuple will remain valid in Pygame 1.9. Lenard Marcus von Appen wrote: On, Wed Jan 14, 2009, Jake b wrote: How so, or

Re: [pygame] unit and doc testing questions

2009-01-14 Thread Jake b
2) Do you have two seperate unittests ? (A) One is ran every time source files are compiled, and a second, (B) slower one is ran at a longer interval for slow tests ? Such separation is rarely necessary. Something I started on, requires rendering. It's not a huge delay, but I don't want

Re: [pygame] easy way to check pygame.Color() equality?

2009-01-14 Thread mva
Lenard Lindstrom le...@telus.net: High Marcus, I agree that comparing a color to a string was not a good idea. That can go as 1.9.0 is still pre-alpha. For backwards compatibility comparison with a tuple will remain valid in Pygame 1.9. Absolutely - one of the main issues was (and is) the

Re: [pygame] unit and doc testing questions

2009-01-14 Thread Patrick Mullen
On Wed, Jan 14, 2009 at 10:57 AM, Jake b ninmonk...@gmail.com wrote: 2) Do you have two seperate unittests ? (A) One is ran every time source files are compiled, and a second, (B) slower one is ran at a longer interval for slow tests ? Such separation is rarely necessary. Something I

Re: [pygame] unit and doc testing questions

2009-01-14 Thread Jake b
explicitly. That cookbook example sounds like it is less about compiling, and more of a way to implicitly run tests when the application runs. Right. it auto-runs your tests when the code is compiled. are pretty much inherently checking for compiler errors, so there is no need to test for

[pygame] Pgu not working in 1.8.1; is a patch available?

2009-01-14 Thread The Music Guy
Hi, I'm working on a game SDK (http://code.google.com/p/scrollback) and things are going more or less smoothly, but I would like to experiment with Pgu to see if/how I can make it work with my SDK. Unfortunately, Pgu tools and examples keep raising weird exceptions in relation to trying to access