https://github.com/claquettes/mvc-tetris
MVC Tetris made in Java @ Polytech Lyon
https://github.com/claquettes/mvc-tetris
java mvc-architecture tetris tetris-game
Last synced: 2 months ago
JSON representation
MVC Tetris made in Java @ Polytech Lyon
- Host: GitHub
- URL: https://github.com/claquettes/mvc-tetris
- Owner: Claquettes
- Created: 2024-04-16T07:58:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-16T07:54:10.000Z (about 1 year ago)
- Last Synced: 2025-02-07T16:39:34.917Z (4 months ago)
- Topics: java, mvc-architecture, tetris, tetris-game
- Homepage:
- Size: 25.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tetris Game
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.## Table of Contents
- [Getting Started](#getting-started)
- [Gameplay](#gameplay)
- [Code Structure](#code-structure)
- [Contributing](#contributing)
- [License](#license)## Getting Started
To get a local copy up and running, follow these steps:
1. Clone the repo
```sh
git clone https://github.com/TaTu03TV/Java-Tetris-MVC.git
```
2. Open the project in your preferred Java IDE (e.g., VsCode, Eclipse, Neovim)3. Run the [`Main.java`] file to start the game
## Gameplay
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 gameThe 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.
## Code Structure
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.
## Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
Distributed under the MIT License. See `LICENSE` for more information.