-- BASICS OF PLAY -- When you start this game, it will ask you what music you want to hear while you play. Enter the number corresponding to the music you want to hear. The different music is listed in the notes and credits. The default music option is #7, or no music. Then, you will also be asked to choose the level you start at. The level you are in influences the speed of that level. The default level is the very first level, or level 0. CTWC style games will start at level 18, which is extremely difficult, so yeah. You will also be asked the seed for randomly generated pieces. Seeds can range from 2 to 41,999,999. You can also leave the box blank for a random seed. If you are competing against someone else (for the greater point total, or something) you will want to make sure you have the same seed as them, so you will get the same pieces in the same order. Finally, you may begin by pressing enter when instructed. If you are competing against someone else you may want to start at the same time. The controls are as follows: A and D to move the pieces, S to drop the pieces quicker, W or J to rotate the pieces clockwise, and H to rotate them counterclockwise. (If you think about it, it's just WASD, H, and J). -- RULES OF TETRIS (for those who don't know how it works even though it's the most popular puzzle game) -- Falling tetrominoes (four connected squares) can be rotated and moved into place. When one row is completely occupied by squares, that row gets cleared, disappearing and the rows above it move on top. When four lines get cleared simultaneously, it is called a Tetris and in the NES version of Tetris it can earn you a lot of points.
Bug: Are levels 18 and 19 the same speed (when 19 should be 1.5x faster)? I don't know... Inspired by the YouTube video "The Classic Tetris World Championships Explained" by aGameScout: https://www.youtube.com/watch?v=9RaqVGzhQTM&t=712s If someone makes a mobile-friendly remix of this project I will post it here! Different music: 1. NES Tetris theme 1 2. NES Tetris theme 2 3. NES Tetris theme 3 4. *The* Tetris theme (GB theme A) 5. but in E (like GB theme B) 6. Tetris theme "remix" (Tetris 99 theme) 7. No music Things I changed from the original project (note: you might have to know a thing or two about NES Tetris to understand some of these): - Changed the title screen - made the score 7 digits so if someone "maxes out" the game (achieves 1,000,000 points) it goes higher (even though no one will probably do that on this project) - Made it so that the pieces change color when the level changes (there are 3 colors) (edit: this no longer applies to pieces on the playfield, they now look like they do in NES Tetris. Also, colors of pieces on the playfield repeat every 10 levels.) - adjusted the rate at which the game runs slightly to more accurately match the speed at which NES Tetris runs - added a line drought stat - make the pieces turn biased towards the right (not the left) - added BRN (lines "burned" since the last Tetris) and TRT (percentage of lines that were part of a Tetris) stats - made it so points are awarded for hard-dropping pieces - implement auto-shift and delayed auto shift (DAS) - make it so that when a new piece comes in the game (after the next box), if you're pressing left or right DAS will be charged (and the piece will move after 6 frames) - implemented random pieces being generated using a seed (from 2 to 41,999,999) - made random pieces be generated more like they do in NES Tetris, where the probability of the same piece twice in a row is decreased - implemented being able to choose which level you start at - implemented being able to set the music (or have no music) - made the music speed up when your stack is near the top, and stop when you "top out" - made the screen flash whenever you get a Tetris - changed the controls so it's more like an NES controller Note: - This project does not give a complete statistical analysis of your game at the end like they do at the CTWC. - I am not associated with the CTWC at all so if I am using the logo in the thumbnail without permission please let me know and I will fix it! - I added a score that updates under "Top". This is related to the cloud variable "glabal record".