[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Surface Sprite Rect -> HELP
On Tue, 2006-11-21 at 00:14 -0300, Nicolas Bischof wrote:
> thanks, but when clearing a row i will need to have the moving methods
> of my piece class.
For beginning Tetris, do not worry about the Sprite objects.
A Surface is just any picture. You load Surfaces from image files on
disk. And the display window is also a Surface. You draw one image onto
another with the Surface.blit method.
A Rect object is just a rectangular position. It is not an image or
something visible. It just has X and Y positions for four edges.
If you are asking about how to move and clear the Tetris pieces, you
might want to start with this tutorial.
Help! How Do I Move An Image?
http://www.pygame.org/docs/tut/MoveIt.html