Skip to main content

PyTetris() - 1.1

PyTetris() is a Tetris clone for Python and pygame.


Felix
(fix94)
Have fun, readme is included :)

Changes

Here is v1.1 for you :) Changes: -fixed small menu bug, -fixed block start position -more efficient setlevel() (thx wez) and gamelabelrefresh() code -Python 2.X and 3.X compatible -general code cleanup

Links

Home Page
http://pygame.org/
Source
http://dl.dropbox.com/u/25620767/PyTetris_v1.1.rar

Releases

PyTetris() 1.0 — 27 Oct, 2011

PyTetris() 1.1b — 28 Oct, 2011

PyTetris() 1.2 — 22 Nov, 2011

PyTetris() 1.1 — 28 Oct, 2011

PyTetris() 1.3 — 23 Nov, 2011

Pygame.org account Comments

  • feeflxf fgdkjglkvb 2011-10-28 07:53

    Thanks for your tips :)
    Yeah your totally right about that, I'll also make it compatible for python 3.

  • wez 2011-10-28 09:22

    well done, I like it. I got to level 10, 103 lines, 38111 points! 

    near that level I got tiny pauses as the blocks touched down, may just be my netbook but look out for build-up of memory usage just in case. in setlevel() you could replace your if-statements with something like: "self.time = level_time_list[self.level]", thinking ahead you can even generate this list using a log function, ie the rate increase slows down near the end (like you tried doing with if self.level > 10 and self.level < 12).

    thumbs up!