https://github.com/hansolo/tetris
A JavaFX clone of the classic Tetris game
https://github.com/hansolo/tetris
Last synced: about 1 year ago
JSON representation
A JavaFX clone of the classic Tetris game
- Host: GitHub
- URL: https://github.com/hansolo/tetris
- Owner: HanSolo
- Created: 2023-02-27T11:29:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T13:32:03.000Z (over 3 years ago)
- Last Synced: 2025-04-23T01:47:04.357Z (about 1 year ago)
- Language: Java
- Size: 12.4 MB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tetris
[](https://GitHub.com/HanSolo/tetris/releases/)
Tetris is a simple clone of the game Tetris from 1984 by Alexey Pajitnov written in JavaFX.
The game contains 20 levels where the levels mainly define the speed of the falling blocks.
All graphics are drawn by myself and can be found in the resources folder
in the main directory of the project. These files are in the format of Affinity Designer.
### Settings
- The game will create a properties file in your user folder named tetris.properties
e.g. `/home/YOUR_USERNAME/tetris.properties`
```properties
highscore=0
```
### Build
- Get the source of this project
- Make sure you are on JDK 17
- call ```./gradlew clean build``` on the command line
- execute ````bash build_app_macos.sh```` on the command line to build native executable and installer
### Gameplay
- Space bar to start the game when in start screen otherwise it will rotate the current block
- Move block to the left: Arrow left
- Move block to the right: Arrow right
- Fast drop block: Arrow down
- Rotate block Space bar
- M key will toggle between modes (GLOSSY, GITHUB, STANDARD)
### Play online in the browser
[WebFX](https://tetris.webfx.dev/)
### ScreenShots


