benmcavoy.uk

Lunatic Engine editor screenshot
C++20 OpenGL 4.6 LuaJIT ImGui RTTR

Lunatic Engine

Modern 2D engine and editor focused on fast iteration — OpenGL 4.6, ImGui docking, LuaJIT scripting, and RTTR-based scenes.

TL;DR

  • Open LunaticEngine.sln in Visual Studio 2022 (x64); vcpkg manifest pulls dependencies automatically
  • Run LunaticEditor (editor) or LunaticRuntime (loads LunaticRuntime/scene.json)

Cross-platform portability is planned; current solution targets Windows/MSBuild with vcpkg integration.

Features

  • 2D rendering (Camera, Sprite, Texture, Framebuffer) with a default shader
  • Scene graph with reflection (RTTR) and JSON save/load
  • Lua scripting with coroutines and reflected properties/methods
  • ImGui editor with dockspace, viewport, inspector, play/stop

Layout

  • LunaticEngine/: core engine (core/, model/, render/)
  • LunaticEditor/: editor application
  • LunaticRuntime/: runtime app and assets (scene.json)