Tetris on The MatrixMay 30, 2017 builds p11-thematrix
Contributed by Thomas Seary on May 30, 2017
So far, it has the essential game mechanics, increasing speed with advancing levels, and scoring. Later I may add a high-score system.
The controller is a 5-way switch that I salvaged from a cheap webcam, although it's rather touchy. I want to replace it with a rotary encoder to spin the pieces, and buttons to move and drop them. I'm also considering adding 7-segment displays to show the level and score in real time; right now the score is only shown on the screen when it's game over.
The code is not very polished, but it is available on Github. See the G+ post about the game which also includes a video.