| ▲ | krapp 7 hours ago | |
It is easy to get Lua (with LuaJIT) working with SDL3, though. That obviously isn't a replacement for the framework but it is perfectly doable if someone just wants to write a game in Lua with minimal overhead. Edit: I mention LuaJIT specifically because it lets you create metaclasses around C objects, which is much easier than messing with the Lua stack from C, and it's easy to make a 2d vector class from an SDL Point or a spritesheet or what have you. There are a few rough edges like dealing with pointers and gc but to me it's the best of both worlds (the speed of C, and some implicit type checking, and the flexibility of Lua.) Obviously you could do it the hard way and the other way around with normal modern Lua but it's such a pain in the ass. | ||