Skip to content

ianyepan/raylib-practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ian's Raylib Practices (C++)

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

Screenshots

Flappy Bird Clone




Retro Arkanoid Remake


How to Install & Run?

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

Credits

Many files are built upon examples provided by raylib sample games, with personal modification and enhancement.

About

Some personal practice with raylib and raylib-cpp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published