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.
- Host: GitHub
- URL: https://github.com/imerr/sfmlengine
- Owner: imerr
- License: mit
- Created: 2014-08-13T08:18:18.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-08-12T15:33:13.000Z (almost 7 years ago)
- Last Synced: 2025-02-24T16:58:47.531Z (over 1 year ago)
- Topics: box2d, c-plus-plus, cpp11, engine, sfml
- Language: C++
- Homepage:
- Size: 411 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)*