https://arcade.makecode.com/S79511-60475-16395-95717
I’m working on a tetris clone in makecode, and i’ve gotten pretty far along so far. There are a few unfinished things (score, can’t hold to move piece left/right yet, the hold for soft drop is very scuffed right now etc.) but I’m looking for help on my line clearing code, specifically the “lowerHangingRows” function.
It seems to work well when clearing 1 or 2 rows, but doesn’t work when clearing 3 or 4. If anyone smarter than me can make sense of my code, advice would be greatly appreciated.