Skip to content

raylib-extras/examples-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c44c2cc · Dec 19, 2024

History

76 Commits
Mar 19, 2022
Dec 31, 2023
Dec 31, 2023
Oct 26, 2024
Nov 22, 2024
Oct 26, 2024
May 19, 2024
Jun 12, 2024
Aug 21, 2022
Oct 26, 2024
Oct 26, 2024
Oct 9, 2023
Dec 19, 2024
Aug 21, 2022
Nov 22, 2024
Nov 23, 2024
Aug 21, 2022
Oct 24, 2021
Dec 19, 2024
Aug 21, 2022
Aug 21, 2022
Feb 25, 2024
Feb 25, 2024
Jun 11, 2024
Aug 21, 2022
Oct 16, 2023

Repository files navigation

examples-cpp

Examples and samples made for raylib using C++

Building

The examples use premake. Each example is a project on it's own. Premake will setup the build systems for each project for you, and download any needed libraries (raylib and box2d)

For Visual Studio

Run premake-VisualStudio.bat. When it is done each example folder will have a .sln file in it that you can open and run.

For MinGW

Run premake-mingw.bat. When it is done each example folder will have a makefile that you can build, just cd into the example folder and type make.

For GCC On Linux

Run "premake5 gmake2". When it is done each example folder will have a makefile that you can build, just cd into the example folder and type make.

For GCC On MacOs

Run "premake5.osx gmake2". When it is done each example folder will have a makefile that you can build, just cd into the example folder and type make.

Pew

A very simple game where you drive a tank around and shoot targets pew_game

Cards

An example of how to build up cards, decks, and hands and drag cards around. cards

Platform Example

An example of platfomer style movement, sprite animation, and state management. platform_jump

Box2d Raylib

An example of using the Box2d physics library with raylib. Box2d_spin

Box2d Raylib Objects

An more advanced example using box2d and objects box2d_objects

Voxel Mesher

An example of how to create blockgame (minecraft) style voxel chunk meshes.

Transform Hierarchy

An example of how to use nested transforms in a parrent/child relationship to build up complex transformations. Example is a simple first person controller with an attached gun.

Hardpoints 2d

An example of how to build up objects with attachment using compound transforms.

FPS collisions

An example of one way to do FPS style motion and collisions.

raycaster

Raylib software Raycaster similar to Wolfenstein 3D Based on algorithms from https://lodev.org/cgtutor/raycasting.html

raycaster

Inventory

An example of a simple drag and drop inventory system

Skill Tree

An example a skill tree type view with pan and zoom using Camera2D