I was bored at work, so I made a Tetris clone
Posted: Thu Jul 22, 2021 10:14 am
Tested only in 800x600.
Written on a touch device, so the buttons at the bottom right can be activated by touch. I've expanded it on a desktop computer, to include mouse and keyboard functionality.
Left key moves blocks left, right key moves blocks right, down key moves block down (1 line only), and [,] and [.] keys rotate blocks counterclockwise and clockwise.
You get slightly higher score points for placing a block close to the bottom of the screen than near the top, and you get higher rewards for clearing multiple lines at once (up to 100 points for 4 lines).
Level goes up after every 25 blocks, and speed increases for every level as well (until level 7, at which blocks fall 1 line every 0.1 seconds)
Written on a touch device, so the buttons at the bottom right can be activated by touch. I've expanded it on a desktop computer, to include mouse and keyboard functionality.
Left key moves blocks left, right key moves blocks right, down key moves block down (1 line only), and [,] and [.] keys rotate blocks counterclockwise and clockwise.
You get slightly higher score points for placing a block close to the bottom of the screen than near the top, and you get higher rewards for clearing multiple lines at once (up to 100 points for 4 lines).
Level goes up after every 25 blocks, and speed increases for every level as well (until level 7, at which blocks fall 1 line every 0.1 seconds)