Bebone - Is a framework/engine aimed for flexible and comfortable game development, written in C++. In other words Bebone is a set of useful game development libraries, written and integrated in Bebone framework ecosystem.
Bebone is not a new javascript framework btw. It is a game development one!
Cool looking widgets
Graphics module
For now there is two methods how you can use bebone is your project(build locally).
Firstly lets clone bebone locally(note that you also need to clone all bebone git submodules).
Secondly lets configure our Cmake configuration with
cmake -B build -G Ninja
Finally you can simply build project with cmake
cmake --build build
Note that bebone is only a set of useful libraries/modules, some modules can be used separately.
The testing process is similar to the Building. After a successful build, all you have to do is run CTest from build\tests\unit
directory.
For convenience, we try to reduce the use of third-party libraries, as it complicates code management and readability. At the moment, bebone is only dependent on these libraries:
Bebone hello world example:
#include "bebone/bebone.h"
using namespace bebone::gfx;
using namespace bebone::gfx::opengl;
int main() {
GLFWContext::init();
auto window = WindowFactory::create_window("Example", 800, 600, GfxAPI::OPENGL);
GLContext::load_opengl();
GLContext::set_viewport(0, 0, SCR_WIDTH, SCR_HEIGHT);
while (!window->closing()) {
GLContext::clear_color(0.2f, 0.2f, 0.2f, 1.0f);
GLContext::clear(GL_COLOR_BUFFER_BIT);
// Your game code
GLFWContext::swap_buffers(*window);
GLFWContext::poll_events();
window->execute_input_actions();
}
GLFWContext::terminate();
return 0;
}
You can find other examples in examples directory.
Bebone is free, open source game development framework. All code in this repository FOR NOW is licensed under