[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

RE: [pygame] learning to program tetris



I'm new to pygame/programming and I am trying to learn.
I'm starting with a tetris clone and I have run into some problems.
Specifically, I don't know the best way to erase blocks, or how to get the pieces to "fit" together.
I imagine that the playing board in my code needs to be an array, the pieces are checked against the array for filled blocks and stop if they run into one.

I've reviewed the code on the pygame site, a lot of it is helpful, I just wish there were more examples and tutorials.


There is a tetris-like game that comes w/ pygsear:
https://savannah.nongnu.org/projects/pygsear/

It is in the separate games distribution ... ntris.

While savannah's file downloads are still down, there is a
temporary mirror of the files here:
http://staff.easthighschool.net/lee/computers/book/pygsear/

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail