A Tetris game implemented in Java using the Model-View-Controller (MVC) design pattern. Made by Arthur RIGONNET and Mathieu PONTON under the supervision of Mr. Frederic Armetta during our 3rd Year at Polytech Lyon.
To get a local copy up and running, follow these steps:
- Clone the repo
git clone https://github.com/TaTu03TV/Java-Tetris-MVC.git
-
Open the project in your preferred Java IDE (e.g., VsCode, Eclipse, Neovim)
-
Run the [
Main.java
] file to start the game
The game is controlled using the keyboard. The current controls are:
- 'ZQSD' to move the piece
- Space to hard drop
- 'h' to hold a piece
- 'p' to pause the game
The game features a scoring system, where completing more lines at once results in more points, and a leveling system, each level being harder but rewarding more points.
The code is organized following the Model-View-Controller (MVC) design pattern. The game's logic is located in the models
package, the graphical user interface in the views
package, and the controller in the controllers
package.
The game's assets, such as fonts and sound effects, are located in the assets
directory.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.