How to Move Game Pieces via Player Input
In the previous post we made our Tetris clone pieces fall on their own. Now, we want to allow our player to tell the pieces when they are going to move left and right. In addition, they should also not be able to move the pieces left or right, outside of the play space. How can we move game pieces via player input? The first thing you should do is familiarize yourself with the commands that will be necessary to actually register player input. There are three similar commands to accomplish this. These are: Input.GetKeyDown() Input.GetKey() Input.GetKeyUp() [...]