BlockBlaster is a classic breakout-style game built using SDL2 and Raylib. The objective is to break all the blocks by bouncing a ball with a paddle. This project demonstrates the use of graphics libraries in C to create a fun and interactive game.
- Classic breakout gameplay
- Simple and intuitive controls
- Graphics powered by SDL2 and Raylib
- C Compiler (GCC recommended)
- SDL2
- Raylib
sudo apt-get update
sudo apt-get install libsdl2-dev
brew install sdl2
Download the SDL2 development libraries from the SDL2 website and follow the installation instructions for your specific development environment.
sudo apt-get install build-essential
sudo apt-get install libgl1-mesa-dev libgles2-mesa-dev
git clone https://github.com/raysan5/raylib.git
cd raylib/src
make
sudo make install
brew install raylib
Download the Raylib development libraries from the Raylib website and follow the installation instructions for your specific development environment.
- Clone the repository:
git clone https://github.com/yourusername/BlockBlaster.git
cd BlockBlaster
- Compile the project:
gcc -o BlockBlaster main.c -lSDL2 -lraylib -lm
- Run the executable:
./BlockBlaster
- Use the left and right arrow keys to move the paddle.
- Break all the blocks by bouncing the ball with the paddle.
- Try not to let the ball fall off the bottom of the screen!
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License.
- Thanks to the SDL2 and Raylib developers for their excellent libraries.
- Inspired by the classic arcade game Breakout.
For any questions or suggestions, please open an issue or contact me at [email protected]
Enjoy playing BlockBlaster!