Note
Readme written by GitHub Copilot
A simple shooter game built using Raylib and C++.
Bolatron Raylib C++ is a straightforward shooter game that leverages the Raylib library for graphics and audio. The game involves controlling a ball that can shoot bullets and avoid enemies.
- Control a ball using keyboard inputs.
- Shoot bullets towards the mouse pointer.
- Enemies spawn randomly and move towards the player.
- Collision detection between bullets and enemies, as well as between the player and enemies.
- Background music and sound effects for shooting and reloading.
output.mp4
- CMake 3.10 or higher
- Raylib library
-
Clone the repository:
git clone https://github.com/AntonioRodriguezRuiz/bolatron-raylib-cpp.git cd bolatron-raylib-cpp
-
Create a build directory and navigate to it:
mkdir build cd build
-
Run CMake to configure the project:
cmake ..
-
Build the project:
make
-
Navigate to the build directory:
cd build
-
Run the game executable:
./game
- W: Move up
- A: Move left
- S: Move down
- D: Move right
- Mouse Left Button: Shoot
- Mouse Right Button: Reload
CMakeLists.txt
: CMake configuration file for building the project.src/main.cpp
: Entry point of the game.src/character/ball.cpp
andsrc/character/ball.h
: Implementation and definition of the Ball class.src/enemies/enemy.cpp
andsrc/enemies/enemy.h
: Implementation and definition of the Enemy class.src/scene/scene.cpp
andsrc/scene/scene.h
: Implementation and definition of the Scene class.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.