Tetris

A Java application implementing popular Tetris game. The Game starts after pressing START Button at the bottom of the screen. Next to it, there is a checkbox which allows the application to play music during gameplay.

The music’s source: Tetris Meets Metal - Youtube

Application’s UI during gameplay:

sampleOutput

Controls:

Section Next Brick displays what kind of shape is going to spawn next:

sampleOutput

In the right side of the window the application displays actual points a player has scored.

The application’s sample game:

tetris-gameplay


To generate a jar file of this project using maven:

  1. after cloning the project, open terminal in the project’s main directory and type:

mvn package

  1. Next go to generated target directory:

cd target

  1. To run generated jar file enter:

java -jar Tetris-jar-with-dependencies.jar