An open API service indexing awesome lists of open source software.

https://github.com/zaki-x86/breakoutgame

Breakout game with OpenGL 3.3
https://github.com/zaki-x86/breakoutgame

2d-game 2d-renderer breakout-game cpp cpp17 game-development opengl

Last synced: about 2 months ago
JSON representation

Breakout game with OpenGL 3.3

Awesome Lists containing this project

README

          

# Breakout Game

Breakout is a classic 2D game released in 1976 on the Atari 2600 console. Breakout requires the player, who controls a small horizontal paddle, to destroy all the bricks by bouncing a small ball against each brick without allowing the ball to reach the bottom edge. Once the player destroys all bricks, he completes the game.

Below we can see how Breakout originally looked on the Atari 2600:

![breakout2600](docs/assets/breakout2600.png)

## Game Mechanics

- A small paddle is controlled by the player and can only move horizontally within the bounds of the screen.
- The ball travels across the screen and each collision results in the ball changing its direction based on where it hit; this applies to the screen bounds, the bricks, and the paddle.
- If the ball reaches the bottom edge of the screen, the player is either game over or loses a life.
- As soon as a brick touches the ball, the brick is destroyed.
- The player wins as soon as all bricks are destroyed.
- The direction of the ball can be manipulated by how far the ball bounces from the paddle's center.