Skip to content

SimonLiee/2D-and-3D-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of 2D and 3D

Project in Raylib C.

Example of how to compile to both 2D and 3D graphics without affecting or having to change game logic.

Had to cheat a bit to make the camera centered. Had to set a macro to compile camera position differently whether compiling for 2D or 3D.

How to run

Compile with 2D graphics by running make build_2D in the base directory.

Compile with 3D graphics by running make build_4D in the base directory.

Should produce a binary file in bin named build_osx. Run binary with ./bin/build_osx.

Alternatively compile and build with a single command make build_and_run2D or make build_and_run3D.

Builds for OSX. If running on another platform you might have to configure the build differently.

About

Example of 2D and 3D graphics with same physics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published