项目作者: BoYuHuang1117

项目描述 :
This is a Tetris game with adaptive window size and plays with a mouse.
高级语言: Java
项目地址: git://github.com/BoYuHuang1117/Tetris-game.git
创建时间: 2020-08-13T14:31:06Z
项目社区:https://github.com/BoYuHuang1117/Tetris-game

开源协议:

下载


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
    1. java -version
    2. javac -version
  • Run above commands to check environment setting and availability.
  • cd to src folder, compile and run program.
    1. javac Tetris/*.java
    2. java Tetris/Main