Physical Computing - Mid-Term Tetris Hero
We believe that some "old thing" still have some value today and we want to revive "forgotten memory".
Our team discovers a new way to play a classic game - Tetris. Instead of using several fingers to press the keyboard, we want this game to be more kinetic.
We decided to design several gestures to control the game:
When the player press down his/her index finger to make blocks move left; ring finger to let the block move right; the middle finger to let the block move down. We designed that because we used to use our index finger to press the left-arrow key on the keyboard and so on.
And also, we used an accelerometer to control the rotation of blocks: if the player rotates his/her hand counter-clockwise, the block will rotate counter-clockwise correspondingly; the reverse is true for clockwise rotation.
We adapted a previous Tetris code to realize our ideas. We used serial communication technology to connect Arduino with Processing, and I used millis() function to set a timer for the block: Processing will only execute command from Arduino every half second (except for DOWN command), so that blocks will not rotate or move continuously, which is not user-friendly and conflict the traditional design of Tetirs.
Demonstration:
Assembling Process:
Comments
Post a Comment