Ossium is a bare-bones, cross-platform 2D game engine being built in C++ with SDL 2 and Box2D.
At some stage I intend to write up documentation for Ossium (once I’ve cleaned up the code a bit). Until then, you can check up on my website from time to time for blog posts and articles about Ossium (and other projects I’m working on). Or you can dive into the code to better understand how different parts of the engine work for yourself. Note that the engine is constantly being updated and improved currently, so if you intend to use it for your own games and projects beware of bugs and changes over time.
If building from scratch, you will also need to build Box2D as a static lib and have that output in
libBox2D.a. The Code::Blocks project is setup to link against it should you wish to build Ossium yourself.
I’m developing this project using Code::Blocks 17.12 on Windows 10 64-bit currently (and sometimes on (arm) Linux 64-bit)
with the GNU GCC/G++ compiler. The engine is easily portable to Linux or Mac (you may need to change SDL 2 includes by find and replace of initial
<SDL2/SDL for Linux builds), and it should be possible to make mobile builds and so on with some appropriate tweaks to the code due to the cross-platform design around SDL 2 and Box2D.
Before building, please make sure you are compiling with C++17 enabled (use compile option
-std=c++17 and make sure you’re using GCC 8 or later) as the project makes use of some of those features.
Check out Lazy Foo’s SDL 2 tutorials at www.lazyfoo.net if you’re unfamiliar with SDL; if you don’t know how to setup SDL 2 to build Ossium, check out the first tutorial.
P.S. if you make anything cool with Ossium, I’d love to hear about it!