in Software

Tetris Attack ClojureScript Update – Garbage Blocks

In this v1.0.3 update to Tetris Attack Clojurescript, I implemented Garbage Blocks. In Tetris Attack, Garbage Blocks are dropped onto your playing field when your opponent makes a match. The dimensions of the block depend on the nature of your opponent’s match, whether it was a combo or a chain match.

For now, I’ve implemented randomly falling garbage blocks, which fall every 100 clock ticks. This seems somewhat fast in practice, and I’ll probably dial it down at some point, especially if I ever get around to adding the concept of levels to the game.

The clear a garbage block, you must make an adjacent match. Once that happens, the garbage block splits into a set of regular blocks. Currently, the garbage block will be completely dissolved into regular blocks, which is a different behavior than the original Tetris Attack game.

There are a couple of other improvements to performance as well, but it still runs best in Google Chrome. Below is a link to a screencast of the current version. You can also try the most current version here.