Skip to content

cyrusmsk/raylib_box2d_d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raylib_box2d_d

Example for raylib and box2d in D language (PoC)

Installation

Currently to make the project working you need to install 2 libraries: raylib and box2d (version 3.x, because it was ported to C)

Raylib

I've used raylib-d library on macOS. To install it I've sucessfully used the newer method of installation:

dub init
dub add raylib-d
dub upgrade
dub run raylib-d:install

Box2d

At the time of the creation of this project in the homebrew was available only version 2.4.2

But because we have ImportC we can use fresh release of box2d like that:

git clone https://github.com/erincatto/box2d.git
cd box2d
./build.sh

It will generate build folder with src/libbox2d.a inside.

Build

All other configurations and specific file for ImportC (box2d_lib.c) already prepared. So you need only to run:

dub run

And it should work screenshot

Credits

box2d-raylib - example from raylib github

raylib-d - raylib D library

About

Example for raylib and box2d in D language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published