raylib-extras / examples-cpp

Examples and simple games using raylib and C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Examples and simple games using raylib and C++

License:zlib License


Languages

Language:C++ 81.4%Language:C 10.7%Language:GLSL 4.1%Language:Lua 3.8%Language:Batchfile 0.0%