This repo contains some personal practices with raylib, a simple and easy-to-use library to enjoy videogames programming. I am using raylib-cpp as an OOP wrapper around the original raylib v3.0.0, to practice programming and working with basic graphics in C++.
This project relies on the installation of the raylib library. Installation instructions of raylib can be found here.
I'm also using raylib-cpp as
an OOP wrapper around raylib, mainly to keep my code cleaner and
closer to the modern C++ syntax I'm used to. You can see the
differences between raylib syntax and raylib-cpp syntax
here. Raylib-cpp is
a header-only library, and is already locally included in my repo
under the include/
folder.
To compile and run a file under src/
, you'll need several additional
flags. For example, suppose you want to play the Flappy Bird Clone
game:
$ cd src/
$ g++ flappy_bird.cpp -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 -std=c++17
$ ./a.out
Many files are built upon examples provided by raylib sample games, with personal modification and enhancement.