Pygame Help

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat Jul 29 17:43:29 EDT 2006


In <1154208452.432901.180230 at i42g2000cwa.googlegroups.com>, Blaze Bresko
wrote:

> [Tetris] I was curious how you would program the seperate  images to
> fall together and not break apart, because pygame and livewires uses
> images as collision detection, so therefore you can't make most of the
> shapes a single image because they will have transparent spaces as part
> of the image, which will make floating shapes and such.

I wouldn't rely on the graphics library at all but create a "model" of the
game that's completely independent from the graphics.  I think a two
dimensional structure with lists of lists is the simplest solution.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list