╭━━━━━━━━━━━━━━━━╮ ┃ Tetris is a puzzle video game ┃ ┃ created by Soviet software ┃ ┃ engineer Alexey Pajitnov in 1984. ┃ ╰━━━━━━━━━━━━━━━━╯ ╳╳╳╳╳╳ Dɪsᴄʟᴀɪᴍᴇʀ ╳╳╳╳╳╳ This chunk of text is incredibly long. Sections are sorted by importance. Stop reading and start playing when you need to. Please report any issues you have with the game, and have fun! ════╣ Cᴏɴᴛʀᴏʟs ╠════ This game is not mobile-friendly, so if you saw this project on your phone, you can give it a star to save it, and play it when you have access to your computer. A or ← (left arrow key) to move left. D or → (right arrow key) to move right. S or ↓ (down arrow key) to soft drop. X or ↑ (up arrow key) to rotate clockwise. Z to rotate counter-clockwise. C to "hold" the current piece. Space bar to hard drop. F to toggle sound effects. B to toggle background music. ════╣ Rᴜʟᴇs ╠════ If you know how Tetris works, safely skip this section. The objective of this game is to clear as many lines as possible with falling tetrominoes. The player can move and rotate the pieces to score points. When a line is completed, it disappears, and the blocks placed above fall one rank. Completing lines grants points (see below). In this version, every 10 lines move the player up a level, which increases the number of points granted per completed line. ════╣ Sᴄᴏʀɪɴɢ ╠════ ┌──────────────┬─────────────┐ │ Soft drop ┼ 1 pts per cell │ ├──────────────┼─────────────┤ │ Hard drop ┼ 2 pts per cell │ ├──────────────┼─────────────┤ │ Single ┼ 100 pts │ ├──────────────┼─────────────┤ │ Double ┼ 300 pts │ ├──────────────┼─────────────┤ │ Triple ┼ 500 pts │ ├──────────────┼─────────────┤ │ Tetris ┼ 800 pts │ ├──────────────┼─────────────┤ │ Mini t-spin ┼ 100 pts │ ├──────────────┼─────────────┤ │ Mini t-spin single ┼ 200 pts │ ├──────────────┼─────────────┤ │ Mini t-spin double ┼ 400 pts │ ├──────────────┼─────────────┤ │ T-spin ┼ 400 pts │ ├──────────────┼─────────────┤ │ T-spin single ┼ 800 pts │ ├──────────────┼─────────────┤ │ T-spin double ┼ 1200 pts │ ├──────────────┼─────────────┤ │ T-spin triple ┼ 1600 pts │ ├──────────────┼─────────────┤ │ B2B bonus ┼ +50% move value │ ├──────────────┼─────────────┤ │ Combo bonus ┼ +50 pts │ └──────────────┴─────────────┘ All points, except for points granted via soft dropping and hard dropping, are multiplied by the level number. ════╣ Cʀᴇᴅɪᴛs ╠════ All code, art and music by me. The background music is Korobeiniki, a Russian folk song. It is also the background music of Tetris. Music created with Beepbox. ════╣ Bᴀᴄᴋsᴛᴏʀʏ ╠════ A while ago, I was invested in playing Tetris. At that point, I was not active here, but a voice in my mind told me to make it on Scratch as a coding challenge, partially because my Python skills are not strong enough to make a fully functioning game. A year later (and a deleted v0.1 of this project), I present to you this project! Rushed in just before 2023. ════╣ Gᴜɪᴅᴇʟɪɴᴇ ╠════ This game is compliant with Tetris' official guidelines. From its 7-bag randomiser and scoring system to its rotation system and t-spin detection, this is one of, if not the closest, Tetris remakes that follows the guidelines. There are, however, a few differences. 1. Soft drop speed. The guideline suggests the soft drop speed to be 20 times faster than the original soft drop speed, but I went with a constant speed boost of one cell per tick. 2. Pausing. I just can't think of a way to code that. 3. And of course, no information about copyright. ════╣ Tɪᴘs ╠════ Try to leave a one-column well to get more tetrises. T-spins are worth tons of points, though they are difficult to pull off without the right tactics. Maintaining a relatively flat surface is vital to surviving this game.