Re: [pygame] strange compile error with cocoa

2009-07-12 Thread René Dudfield
Hi, you should be able to put a pointer in the structure in the .h file. Then in your .m file define another structure with all your objc/cocoa specific parts. Then you might need to typedef yourstuff to void *. Then just cast to and from the void * to your mac specific structure. That way the

Re: [pygame] [BUG] midi unit test for Pygame rev 2500, Python 2.6.2, Windows XP

2009-07-12 Thread René Dudfield
On Mon, Jul 13, 2009 at 1:27 PM, Brian Fisher wrote: > The svn builds get what I think is the same error but only on python 2.4: > http://thorbrian.com/pygame/builds.php > > Note they've had the bug for a long time - but the portmidi debug prints > were a red herring that obscured it. > > ah, coo

Re: [pygame] [BUG] midi unit test for Pygame rev 2500, Python 2.6.2, Windows XP

2009-07-12 Thread Brian Fisher
The svn builds get what I think is the same error but only on python 2.4: http://thorbrian.com/pygame/builds.php Note they've had the bug for a long time - but the portmidi debug prints were a red herring that obscured it. On Thu, Jul 9, 2009 at 3:21 PM, Lenard Lindstrom wrote: > Hi, > > The P

[pygame] Announcing the 9th Pyweek game programming challenge!

2009-07-12 Thread René Dudfield
The date for the ninth PyWeek challenge has been set: Sunday 30th August to Sunday 6th September (00:00UTC to 00:00UTC) The PyWeek challenge invites entrants to write a game in one week from scratch either as an individual or in a team. Entries must be developed in Python, during the challeng

Re: [pygame] strange compile error with cocoa

2009-07-12 Thread Brian Fisher
Hey Grtz, The problem is easy enough to find from the output you posted, it's the line: #import Which you appear to have added in your branch here: http://github.com/ab3/pygame-mirror/blob/859415df2392bb35d31df13b8d1c4ccc4a278ed5/src/camera.h You are mixing objective-c code with c code, a

Re: [pygame] sprite collisions - looking for simple snippet

2009-07-12 Thread René Dudfield
On Mon, Jul 13, 2009 at 7:32 AM, Paulo Silva wrote: > this reference i know from a long time, and figured out easily there > were the exact methods to be used - the problem is i couldn't have a > snippet working only following that - on my oppinion on that > referenence, each pygame method should

Re: [pygame] strange compile error with cocoa

2009-07-12 Thread René Dudfield
Looks like you might be including objc in c? Not really sure. Perhaps try removing your changes until it compiles again? cu, On Mon, Jul 13, 2009 at 2:08 AM, el lauwer wrote: > I am having problems with a strange compile error, the compiler gives a lot > of syntax erros on line that are perf

Re: [pygame] sprite collisions - looking for simple snippet

2009-07-12 Thread Paulo Silva
this reference i know from a long time, and figured out easily there were the exact methods to be used - the problem is i couldn't have a snippet working only following that - on my oppinion on that referenence, each pygame method should have a working snippet to be tried out - for me is easier to

Re: [pygame] sprite collisions - looking for simple snippet

2009-07-12 Thread Henrique Nakashima
Pygame.sprite has methods for detection collisions: pygame.sprite.spritecollide(), pygame.sprite.collide_rect(), etc. You can find their reference at http://www.pygame.org/docs/ref/sprite.html. On Sun, Jul 12, 2009 at 17:41, wrote: > hi! > i'm having difficulty on coding a small nippet of sprit

[pygame] sprite collisions - looking for simple snippet

2009-07-12 Thread nitrofurano
hi! i'm having difficulty on coding a small nippet of sprite collisions on pygame on sdlbasic, it's extremelly simple to get working (please don't worry about PEP8... :/ ) http://img19.imageshack.us/img19/6966/bht0.png http://img19.imageshack.us/img19/8138/bht1.png http://pastebin.com/f289d

[pygame] strange compile error with cocoa

2009-07-12 Thread el lauwer
I am having problems with a strange compile error, the compiler gives a lot of syntax erros on line that are perfectly fine. The erros: In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ Frameworks/CoreData.framework/Headers/CoreData.h:23, from /Developer/SD