Algorithms gathered from other websites and sound files are gathered from web as well.
↑ - Up
↓ - Down (faster down)
← - Left
→ - Right
p - Pause game
r - Change rotation (left/right)
space - Drop the block down
x - Restart Game
Hidden sound
Points over | Makes Sound |
---|---|
500 | Holy Alphabet |
1000 | Holy Caffeine |
3000 | Holy Fruit Salad |
5000 | Holy Heart Failure |
10000 | Holy Mashed Potato |
20000 | Holy Nightmare |
30000 | Bitchin |
Action | Awarded points |
---|---|
Down (Soft drop) | 1 |
Drop | rows * 2 |
1 Row cleared | 100 |
2 Row cleared | 300 |
3 Row cleared | 600 |
4 Row cleared | 900 |
Levels up every minute regardless of scores (excluding paused time).
600ms is initial speed and every level gets faster by 50ms.
Calvin Lee, @stalk.calvin
- clone repo: https://github.com/stalk-calvin/tetris-game.git
- cd tetris-game
- run:
mvn install exec:java -Dexec.mainClass="tetris.Main"