Skip to content

A simple Breakout-style game created using Python and Pygame, where the player controls a paddle to bounce a ball and break bricks. The game keeps track of the score, level, and allows players to aim for a high score as they progress through increasing levels of difficulty.

Notifications You must be signed in to change notification settings

strathmore-uni/cg-mini-project-group2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

BREAKOUT BLOCK GAME

GAME DESCRIPTION

The game features a paddle, a ball, and a destructible wall of blocks. The goal is to bounce the ball off the paddle and break all the blocks. The game ends when the ball falls below the paddle.

MAIN CONCEPTS

  1. Wall of Blocks: The blocks are arranged in a grid and have varying strengths. The blocks' colors change depending on their strength.
  2. Paddle Control: The player controls the paddle using the left and right arrow keys.
  3. Ball Movement: The ball bounces off the paddle and walls. If the ball hits a block, the block's strength reduces.
  4. Game Over / Win Conditions: The game ends when the ball falls below the paddle or when all blocks are destroyed. Start Game: The player can click anywhere to start the game after a win or loss.

Features Dynamic Gameplay: A responsive paddle and bouncing ball with gradually increasing speed. Levels and Scoring: Track your score and progress to higher levels as bricks become harder to break. Color-Coded Bricks: Bricks change color based on difficulty, enhancing the visual appeal. User-Friendly Interface: Displayed score, level, and high score to keep players informed. Installation To install and run the game, follow these steps:

MACHINE REQUIREMENTS AND INSTRUCTIONS

  • install Python 3.12.5
  • install Pygame library
  1. Install Python 3 if you don't already have it.

  2. Install the Pygame library:

    pip install pygame
    
  3. Clone the repository:

https://github.com/Ogororuth/cg-mini-project-group2.git
  1. Navigate the code, copy the code from blockgame.py, click run and enjoy playing

INSTRUCTIONS OF THE GAME

  • Use the left or right arrow keys to move the paddle.
  • The goal is to destroy all the blocks by bouncing the ball off the paddle.
  • If the ball falls below the paddle, you lose the game.
  • If all blocks are destroyed, you win the game.

How to Start AND ENJOY THE GAME

  1. After running the game, click the right or left pad on the screen to start.
  2. Use the arrow keys to move the paddle and break all the blocks.
  3. When all blocks are destroyed, you win! If the ball falls off the screen, you lose.

About

A simple Breakout-style game created using Python and Pygame, where the player controls a paddle to bounce a ball and break bricks. The game keeps track of the score, level, and allows players to aim for a high score as they progress through increasing levels of difficulty.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%