Skip to main content

pyBlocks - alpha-4

A simple blocks game made with python and pygame.


Update 2013: I can't get the OpenGL stuff to work like I want it to, so the project has been totally iced. It's too bad, since what little works looks a lot more awesome than the game so far.

Early alpha release of a blocks/columns game. Used python 2.6.4 and pygame 1.9.1 for developing, but it may run on others. Tested on Ubuntu Linux and Windows XP, but I haven't had the chance to test any other platforms. The alpha release is buggy and has several routines pending rewriting. I've been slowly examining OpenGL and 3d graphics, and I'd like to use these in the game eventually. That's still a long way off, though.

Known bugs:

  • Some visual problems with the floating texts.
  • The block colors do some odd things between freefall and settling down on the playfield. I hoped using double buffer would fix this, but alas. I managed to patch it up a little bit for alpha-6, but it's still noticeable if you're paying attention to it.

Stuff already in alpha-6:

  • Game classes got broken down to multiple files. Functionality is still a work-in-progress.
  • Config file received a new variable.
  • Blocks stay alive for a tiny bit after landing, so you can work with them if you're quick.

Things planned for the sixth alpha: Any functioning animation sequence to signal what blocks are being destroyed. Further enhancing of the scoring routine. Help the visual problems. Music and sound effects. Start to prepare for the first beta version and how the main systems of the game should be rewritten.

The sixth version is now in the middle of a pretty extensive reorganization and rewriting process. It's progressing quite slowly. 06/10: I thought for a moment that this was abandoned, but the new version started to work. There's still an uphill battle of gluing it all up together. Currently most of it works, and I think all the new game-breaking bugs have been fixed.


Tilesets are now supported, scroll through them with the +/- keys ingame. Custom tilesets are easy to add into the game: Make an image for the blocks you want replaced (6 colors and background), or let some of them automatically fall back to the 'Default' set tiles. Add the tileset name and size to blocks.cfg, put the images in the /images/ directory, and that's it. If you really like some set, you can make it load on startup by editing the blocks.cfg file. Even though tile sizes other than 32x32 are supported (in theory), the framework that currently passes for a GUI is quite fixed for 32x32 sized blocks. The support will be better in some later version. Combo collapses have a delay now, so you can actually follow what happens in the game. Rebalanced scoring to favor combos heavily. Some minor changes here and there, for example the game doesn't end without checking for collapses any more if you block the entrance.


Home Page


pyBlocks alpha-2 — 13 Apr, 2010

pyBlocks alpha-4 — 17 Apr, 2010

pyBlocks alpha-5 — 20 Apr, 2010

pyBlocks alpha-1 — 13 Apr, 2010

pyBlocks alpha-3 — 15 Apr, 2010 account Comments