https://github.com/abdulrehman-baloch/tetrisgame-sfml
This project is a fully functional Tetris game built using the C++ SFML (Simple and Fast Multimedia Library). The game recreates the classic Tetris experience, featuring rotate, move, and drop blocks using keyboard inputs, Tracks the player's score based on the number of rows cleared at once and much more.
https://github.com/abdulrehman-baloch/tetrisgame-sfml
game-development sfml-graphics-library tetris-game
Last synced: 8 months ago
JSON representation
This project is a fully functional Tetris game built using the C++ SFML (Simple and Fast Multimedia Library). The game recreates the classic Tetris experience, featuring rotate, move, and drop blocks using keyboard inputs, Tracks the player's score based on the number of rows cleared at once and much more.
- Host: GitHub
- URL: https://github.com/abdulrehman-baloch/tetrisgame-sfml
- Owner: Abdulrehman-Baloch
- Created: 2024-10-17T10:43:30.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T11:08:09.000Z (12 months ago)
- Last Synced: 2024-10-19T14:49:35.277Z (12 months ago)
- Topics: game-development, sfml-graphics-library, tetris-game
- Language: C++
- Homepage:
- Size: 21.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tetris Game (C++ & SFML)
### Project Overview
This repository contains a Tetris game implemented in C++ using the Simple and Fast Multimedia Library (SFML). It replicates the classic Tetris experience with smooth gameplay, intuitive controls, and a scoring system. The game gradually becomes faster as the player progresses through levels.### Features
- **Responsive controls**: Move, rotate, and drop tetrominoes using the keyboard.
- **Score tracking**: Earn points for clearing rows.
- **Game over detection**: The game ends when the grid is filled.
- **2D Graphics**: Smooth rendering using SFML for a polished gaming experience.
- **Pause/Resume functionality**: Players can pause and resume the game anytime.### Technologies Used
- **C++**: Core game logic and data handling.
- **SFML**: Graphics rendering, input handling, and window management.### Game Controls
- **Left/Right Arrow Keys**: Move the tetromino left or right.
- **Up Arrow Key**: Rotate the tetromino.
- **Down Arrow Key**: Speed up the fall of the tetromino.
- **Space**: Instantly drop the tetromino.### How to Contribute
If you'd like to contribute to this project, follow these steps:
1. Fork the repository.
2. Create a new branch:
```bash
git checkout -b feature-branch
```
3. Make your changes and commit:
```bash
git commit -m "Add a feature"
```
4. Push the branch:
```bash
git push origin feature-branch
```
5. Create a pull request.### Contact
For any questions or issues, feel free to reach out:
- **Email**: balochabdulrehman23@gmail.com