Skip to content

Gbjerr/tetris-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tetris-clone

A tetris clone developed in JavaFX.

Controls:
The Start button is used to initialize the game, but also used to start over when the player has lost.

  • UP key: rotates figure
  • DOWN key: moves piece faster down
  • LEFT key: moves piece to the left
  • RIGHT key: moves piece to the right

Usage

Requires java 16.
Run with maven: mvn clean javafx:run

Screenshot

tetris

Structure

src
└── main
    ├── java
    │   ├── controller
    │   │   └── GameController.java
    │   ├── model
    │   │   ├── GameField.java
    │   │   ├── Point.java
    │   │   └── Tetromino.java
    │   ├── module-info.java
    │   ├── startup
    │   │   └── Main.java
    │   └── view
    │       ├── GameDisplay.java
    │       ├── ShapeDisplay.java
    │       └── View.java
    └── resources
        └── fonts
            └── Retro_Gaming.ttf

About

A Tetris clone developed in JavaFX.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages