Re: [pygame] Re: I'm getting BSOD while using PyGame.

2007-11-15 Thread Ian Mallett
I know this is a little off topic, but what is the fastest surface to use .get_at() on? Should it be HWSURFACE, etc.? Ian

Re: [pygame] Re: I'm getting BSOD while using PyGame.

2007-11-15 Thread Casey Duncan
I would think not, presumably on a true HWSURFACE that would require a round-trip to the graphics card, whereas on a SWSURFACE it just needs to grab it from RAM. Also 32bpp may be faster than 24bpp, word alignment and all that... At any rate YMMV, and timeit is your friend 8^) -Casey On N

[pygame] Re: I'm getting BSOD while using PyGame.

2007-11-15 Thread Jake b
Thanks for all the replies. This is a kind of long response, trying to debug everything. ( By accident the email replied to claudio, so I don't think it made it to the list. If it's a duplicate, sorry. ) On Nov 15, 2007 2:07 AM, Claudio <[EMAIL PROTECTED]> wrote: > To me the map draw code is ok, b

Re: [pygame] board game

2007-11-15 Thread David Gowers
On Nov 15, 2007 11:00 PM, marta sanz <[EMAIL PROTECTED]> wrote: > Hi there, > > I've left the board game for a time, and now that I have time again, > I have returned to it.. > > Can I do new=pygame.rect(10,20,30,40) ? I mean, I do load an entire > image of my game board, that will be the surface,

Re: [pygame] I'm getting BSOD while using PyGame.

2007-11-15 Thread Jake b
On Nov 15, 2007 9:24 AM, DR0ID <[EMAIL PROTECTED]> wrote: > Hi > > > > # snippet of: Map.py ( also in the zip ) > > def render_test(self): > > """this render works""" > > dest_rect = pygame.Rect(0,0,0,0) # dest rect()'s ignore w,h values > > self.screen.blit( self.tilese

Re: [pygame] Break outside the loop

2007-11-15 Thread Jason Ward
your break is outside of the loop. if you run this: break you will get the same error because that's exactly what your doing, there is no loop to break out of.

Re: [pygame] I'm getting BSOD while using PyGame.

2007-11-15 Thread DR0ID
Hi > # snippet of: Map.py ( also in the zip ) > def render_test(self): > """this render works""" > dest_rect = pygame.Rect(0,0,0,0) # dest rect()'s ignore w,h values > self.screen.blit( self.tileset, dest_rect ) > > I think the problem is pygame.Rect(0,0,0,0)

Re: [pygame] Doubt about using methods in python

2007-11-15 Thread David Gowers
Hi marta, On Nov 15, 2007 9:11 PM, marta sanz <[EMAIL PROTECTED]> wrote: > Hi, > > I have a doubt about python and I would like to ask it to you. > It is about the use of functions -methos- of a class within other class. I > have 2 classes in 2 separate files, in file squares.py I have the class >

[pygame] parab0xx: a light-controlled musical interface

2007-11-15 Thread AlgoMantra
this was made in Pygame! I hope pygamers like this. i can't share the source code yet but i'm happy to discuss the algorithm. http://algomantra.blogspot.com/2007/11/parab0xx-light-controlled-musical.html cheers! -- ----.- 1/f ))) --. ---... http://www.algomantra.com

Re: [pygame] board game

2007-11-15 Thread marta sanz
Hi there, I've left the board game for a time, and now that I have time again, I have returned to it.. Can I do new=pygame.rect(10,20,30,40) ? I mean, I do load an entire image of my game board, that will be the surface, and then, as Samuel said, I've tried to create invisible squares ov

[pygame] Doubt about using methods in python

2007-11-15 Thread marta sanz
Hi, I have a doubt about python and I would like to ask it to you. It is about the use of functions -methos- of a class within other class. I have 2 classes in 2 separate files, in file squares.py I have the class Square with the methods getRect() and setRect(). Now, in other file, board.py