Build games with hot-compiled scripts, integrated physics, and a powerful editor. Cross-platform, open architecture, designed for real-time applications.
Write game logic in familiar C++ with automatic wrapper generation.
#include "ScriptRuntime.h"
void TickUpdate(ScriptContext& ctx, float dt) {
if (!ctx.object) return;
// Move forward
glm::vec3 pos = ctx.object->position;
pos.z += 5.0f * dt;
ctx.SetPosition(pos);
}
extern "C" void Script_OnInspector(ScriptContext& ctx) {
static float speed = 5.0f;
ctx.AutoSetting("speed", speed);
ImGui::SliderFloat("Speed", &speed, 0.0f, 20.0f);
ctx.SaveAutoSettings();
}