Weeble -
You nailed it! Thanks for your help - it is very much appreciated.
Michael
Michael Phipps:
> Anyway, if someone wants to take a look, the code is attached...
In this line:
blocksprite = self.makenewblocksprite(group)
You create a new sprite and add it to "group", but you do not remove
the old one. So you end up with a group filled with many sprites. The
reason you do
>As for the splitting the sprites, I considered that. The problem is that when
>a row is complete (just like in >Tetris), a whole piece that fell wouldn't
>necessarily disappear, but only part of one. I guess I could separate >each
>piece into multiple sprites, but that would involve dozens of s
seul.org
Subject: Re: [pygame] Background ghosts
Hi Jake!
Thanks for responding.
The background that I blit in is the same size as the display surface, so I
really am clearing the screen. :-/ I can see this - when I complete a row, I
redraw the screen and everything looks fine. Then a new sprit
Michael
-Original Message-
From: "Jake b" [ninmonk...@gmail.com]
Date: 12/31/2008 23:12
To: pygame-users@seul.org
Subject: Re: [pygame] Background ghosts
It looks like you never clear the screen. try something like:
def drawBoard():
self.screen.fill( (128,128,128) )
blit ba
It looks like you never clear the screen. try something like:
def drawBoard():
self.screen.fill( (128,128,128) )
blit background to display
for piece in fallenPieces:
blit piece to display
display.flip()
Why do you split sprites into two groups? ( stopped, and moving )
(Not sur
I am finishing up my first pygame; everything has been fun and easy except this:
The game is a tetris-like game (with a twist). I have the falling piece as a
sprite. The background is just a bitmap. The pieces that have already fallen, I
blit into place. So I have something like (in pseudo code)