An open API service indexing awesome lists of open source software.

https://github.com/imerr/sfmlengine

Wrapper for SFML & Box2D. Used for ludum dares by the creator.
https://github.com/imerr/sfmlengine

box2d c-plus-plus cpp11 engine sfml

Last synced: 20 days ago
JSON representation

Wrapper for SFML & Box2D. Used for ludum dares by the creator.

Awesome Lists containing this project

README

          

SFMLEngine
==========
A simple game engine based on SFML & Box2D.
Implements dynamic light and some other stuff

Made for my (iMers) convenience

Compiling
==========
Uses cmake now, so just generate a makefile for the toolchain of your choosing.. or just add all the files to your ide and it'll work too.

It needs a C++11 compatible compiler and makes use of std::thread, so 'default' MinGW [may not work](http://stackoverflow.com/questions/21211980/mingw-error-thread-is-not-a-member-of-std).

Usage
==========
Link the engine, SFML, Box2D and json-cpp, inherit game, create a scene and other stuff and enjoy!

ObjectPlacer controls:
==========
* Left-Click move current object
* Middle-Click delete current object
* Right-Click create new object
* NumPad 0 - Save to out.json
* NumPad + - Next object (replaces current)
* NumPad - - Previous object (replaces current)
* Arrow keys: Move current object by 1px
* Numpad *: rotate by +15°
* Numpad /: rotate by -15°
* Comma ,: sets rotation to °0

Example Projects:
==========
(older ones probably have engine incompatibilities)
* https://github.com/imerr/LD41
* https://github.com/imerr/LD38
* https://github.com/imerr/LD37
* https://github.com/imerr/LD36
* https://github.com/imerr/LD35
* https://github.com/imerr/LD34
* https://github.com/imerr/LD33
* https://github.com/imerr/LD32
* https://github.com/imerr/MiniLD58
* https://github.com/imerr/LD31
* https://github.com/imerr/MiniLD55
* https://github.com/imerr/LD30

*More documentation coming soon(tm)*