Also, SRS isn't implemented properly, it's good enough but it's not perfect, and the title is a typo I thought was funny so I rolled with it. The main goal here was to make it compliant to the 2009 Tetris guideline (a big document the Tetris company uses that says exactly how a Tetris game should be made) though I disregarded that going back to it, so it's halfway or so there. It was distracting anyway, so I replaced it with the particles and used them to make a few other things nicer as well. The particle system is my own, written for the main cart I've been working on, but the background previously was a stolen tweetcart (the function was even called "stolentweetcart()") I was using as a placeholder. It's super unoptimized though, mostly because I was under the assumption there was no CPU limitations in Pico-8, and going back to finish it up, I didn't really bother fixing that.
T spin tetris code#
I've learned a lot since then, and generally improved a bunch, so most of this code is a mess, and doesn't use things it really should like objects, but, everything functions well enough at least. I decided I needed a bit of a break from my current project and thought, hey, why don't I go back and finish this? I started work on this about a month or two ago, and did most of the work back then. I have a real bad habit of starting lots of things and never finishing them, and this was destined to be just another one of those things.
![t spin tetris t spin tetris](https://i.ytimg.com/vi/ZexcIB69zrI/maxresdefault.jpg)
So, here it is, my first ever fully completed cart.
![t spin tetris t spin tetris](https://i.ytimg.com/vi/56t3PqP8YhA/hqdefault.jpg)
Delaying the removal of the overhang can cause overstacking which may leave you with an awkward stack, and is time taken away from removing garbage underneath the setup. The T-Spin Single method is best used if you have a T tetromino ready or coming soon. (Update 1.01: Fixed a bug that caused an out of memory error with particles disabled. The overhang left over by a T-Spin Triple can be cleared with a twist, namely a T-Spin Single.