Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.22 KB

File metadata and controls

40 lines (34 loc) · 1.22 KB

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