-
I think this is my best bet if only the maintainer stabilises the library. The last commit says this is still WIP and has some issues https://github.com/flecs-hub/flecs-lua/commit/895d3cb670827236a2740ccd6d4d477b899590df. Shame because the library looks great. The Lua API is pretty much perfect and I'd love to use it. But the repository has had 2 commits in the last 2 years, and the 3.2.x bindings are not stable yet.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
luaffi
Discontinued Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.
But there are better abstractions available. Look at either luajit's ffi or the standalone luaffi to see how you can define structures from lua that write directly to memory instead of using tables.
-
You could also consider a pure lua ECS like nata. Writing perf-critical stuff in C++ and everything else in lua with completely separate ECS might not be as terrible as it sounds if they're different domains (all rendering done from C++ but all gameplay in lua). You can probably afford to do more in lua than you expect (it's quite fast and most games are quite small).
-
love2d is open source and runs on PC and phones. Someone's even ported it to Nintendo3DS/Switch homebrew. nata is the ECS I use, but you can also checkout more libraries on awesome-love2d. I really enjoy using love2d (especially if you enjoy the engine building parts), but one caveat is that major version number bumps will break compatibility. It's usually easy to port and they deprecate functions long in advance. But there's lots of old libraries out there for older versions that won't just work on the latest love2d (like the code for Harvard's CS50 course).
Related posts
-
what should I use to create games in lua? raylib vs love 2d
-
Beginner question: is there any coding standard for documenting Lua functions or tables emulating OOP?
-
What are the first game engines/frameworks that come to mind when you hear "code only?"
-
What are some good libraries for UI and other common needs nowadays?
-
Question about game menus and ui