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
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
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
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,
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
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.
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)
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
>
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
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
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
11 matches
Mail list logo