Skip to content

GabrielCASilva/Breakout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧱 Breakout Clone (C++ & Raylib)

C++ CMake Raylib

⚠️ This game is still a work in progress, but it's fully playable!

A simple clone of the classic Breakout game, made with C++23, Raylib 5.5, and CMake.
Use A and D to move the paddle, move the mouse to aim the initial direction of the ball, and left-click to launch it.

Gameplay GIF

🎮 Controls

Input Action
A Move paddle left
D Move paddle right
Left Mouse Launch the ball
Mouse Movement Aim the initial direction

⚠️ The mouse is also used to interact with interface elements (menus, buttons, etc.) during the game.


🛠️ Build Instructions

This project uses CMake and automatically downloads Raylib via FetchContent.

📋 Requirements

  • CMake ≥ 3.14
  • A C++ compiler with C++23 support
  • Git (for cloning Raylib)

🔧 Build steps

# Clone the repository
git clone https://github.com/GabrielCASilva/Breakout.git
cd Breakout

# Generate build files
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release

# Build the game
cmake --build build

# Run the executable
cd build
./GameRaylib

📷 Screenshots

Screenshot 2 Screenshot 1

🖼️ Assets & Credits

Please support the artists by visiting their pages and checking out their work!

About

Breakout with raylib in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published