Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 2.13 KB

README.md

File metadata and controls

69 lines (44 loc) · 2.13 KB

Python (Pygame) Tetris Game

Welcome to the Python Tetris Game! This is a classic Tetris game implemented in Python using the Pygame library, with several custom modifications and enhancements.

Features

  • Color Scheme: The game features a unique color scheme using shades of black, grey, and red.
  • Row Counting: The game displays the number of rows cleared by the player.
  • Score Adjustment: The score no longer increases by simply pressing the down button to speed up the block's descent.
  • Custom Sounds: The game uses custom sound files for rotation and row clearing actions.
  • Continuous Movement: The blocks can move continuously when the left, right, or down keys are held down.

Getting Started

Prerequisites

  • Python 3.x
  • Pygame library

Installation

  1. Clone the repository:

    git clone https://github.com/Nebulaleaf/pygame_tetris.git
    cd python-tetris-game
  2. Install Pygame:

    pip install pygame

Running the Game

To run the game, simply execute the main.py file:

```bash
python main.py
```

Gameplay

  • Use the left and right arrow keys to move the blocks.
  • Use the down arrow key to speed up the block's descent.
  • Use the up arrow key to rotate the blocks.
  • Press the escape key to exit the game.

Credits

This Tetris game was originally created based on a tutorial by the YouTube creator @programmingwithnick.

Tutorial here: Link

However, several modifications and enhancements have been made:

  • The color scheme was changed to shades of black, grey, and red.
  • Row counting was implemented to display the number of rows cleared.
  • The scoring system was adjusted to prevent score increases by merely pressing the down button.
  • Custom sound files were used for various game actions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments