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
- Host: GitHub
- URL: https://github.com/zaki-x86/breakoutgame
- Owner: zaki-x86
- Created: 2023-05-15T09:49:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T05:51:13.000Z (about 3 years ago)
- Last Synced: 2025-02-01T16:28:08.646Z (over 1 year ago)
- Topics: 2d-game, 2d-renderer, breakout-game, cpp, cpp17, game-development, opengl
- Language: C++
- Homepage:
- Size: 536 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:

## 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.