Skip to content

This is a Tetris game with adaptive window size and plays with a mouse.

Notifications You must be signed in to change notification settings

BoYuHuang1117/Tetris-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tetris-game

This is a Tetris game with an adaptive window size and play with a mouse.

Capture

How to play!

  • Step 1
    Select your customized window size and playground size.
  • Step 2
    1. right click: Tetromino move right
    2. left click: Tetromino move left
  • Step 3
    1. wheel move forward: Tetromino rotate counter-clockwise
    2. wheel move backward: Tetromino rotate clockwise
  • Step 4
    Offset included! You can try your awesome move without crashing the wall or existing Tetrominoes!!

Capture2

Additional functions

  • The game will be pause if the cursor is within the main playground area.

Capture1

  • When the cursor move within the falling piece, the Tetromino will randomly change its type with penalty on your score.

gif-change shape

Install instruction

  • Make sure Java is successfully installed which includes Java JDK and compiler. ref link
java -version
javac -version
  • Run above commands to check environment setting and availability.
  • cd to src folder, compile and run program.
javac Tetris/*.java
java Tetris/Main

About

This is a Tetris game with adaptive window size and plays with a mouse.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages