This project is a Java-based implementation of the classic Tetris game, developed as part of my academic coursework. The game features standard Tetris gameplay with a graphical user interface and basic game mechanics.
- Classic Tetris Gameplay: Rotate and move tetrominoes to complete lines and score points.
- Graphical User Interface: The game is rendered using Java Swing for a simple but functional UI.
- Score Tracking: Tracks the player's score based on completed lines.
- Difficulty Levels: Increase the challenge as the game progresses with faster tetromino drops.
- Java: Core language used for development.
- Swing: Java library used for the graphical user interface.
-
Clone the Repository:
git clone https://github.com/eliottcoint/Tetris_project_LP2A.git
-
Navigate to the Project Directory:
cd Tetris_project_LP2A
-
Compile and Run the Game:
javac Tetris.java java Tetris
- Left Arrow: Move tetromino left.
- Right Arrow: Move tetromino right.
- Up Arrow: Rotate tetromino.
- Down Arrow: Accelerate tetromino drop.
- Complete horizontal lines to score points. The game ends when the tetrominoes reach the top of the screen.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request with your changes.
This project is open-source and available under the MIT License.
For any questions or feedback, feel free to reach out via my GitHub profile.