jamesrwaugh / SDL2D3

Physics sandbox combining SFML Box2D LTBL2 SFGUI and EntityX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDL2D3

A project combining SFML Box2D LTBL2 SFGUI and EntityX. The primary purpose of this project is an example of combining the libraries in a small sandbox.

Alt Text

Alt Text

Requirements

SFML and SFGUI are requred to be installed beforehand, while EntityX, Box2D and LTBL2 are included as submodules.

Included Libraries

Building and Running

Building requires GCC 4.9 or later, or any compiler with C++14 support. The data folder and config.ini (or .ini specified on argv[1]) should be in the same directory as the built executable

cd SDL2D3/
git submodule init
git submodule update
mkdir build && cd build
cmake ..
make

This will build the executable SDL2D3 in the top-level directory.

Controls

Control Action
Arrow Keys / WASD Pan screen
Mouse wheel Zoom screen
Mouse wheel + CTRL Change light size
Left click Place box
Right click Place circle
Middle click Remove body at cursor

About

Physics sandbox combining SFML Box2D LTBL2 SFGUI and EntityX

License:MIT License


Languages

Language:C++ 65.7%Language:CMake 31.7%Language:C 1.6%Language:GLSL 1.0%