Page 1 of 1

I was bored at work, so I made a Tetris clone

Posted: Thu Jul 22, 2021 10:14 am
by DaedalusYoung
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.
Screen Shot 2021-07-22 at 11.06.13.png
Screen Shot 2021-07-22 at 11.06.13.png (33.58 KiB) Viewed 7490 times
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)

Re: I was bored at work, so I made a Tetris clone

Posted: Thu Jul 22, 2021 2:02 pm
by milon
Nice! :)

Also, you made that on a phone/tablet during your downtime at work? *takes hat off* Impressed!! I can't imagine trying to code on a touchscreen.

Re: I was bored at work, so I made a Tetris clone

Posted: Thu Jul 22, 2021 2:36 pm
by DaedalusYoung
Thanks! Yes, on an old Windows tablet (HP Stream 7), with on screen keyboard. I've ordered a Bluetooth keyboard to make it easier, but this was done all on the tablet screen. We have a lot of downtime lately and they don't mind it if we do our own things in that time. We also sometimes play badminton :D