r/lua • • Mar 28 '26

Discussion Imagine Making game engine With Lua

Imagine building a 3D or 2D game engine from scratch using only Lua

0 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/CapsAdmin Mar 28 '26

In the past before I bought a macbook air, I used to test in a VM. This was in the x86 days though, I'm not sure how well that works now if you want to target the latest macos versions.

Using xwayland honestly sounds like a better idea in retrospect. Wayland is really annoying in that you'd have to essentially build bindings from xml spec files.

I thought about maybe making a custom spirv language, but ended up not pursuing that due to the vast majority of existing shader code out there is either glsl and hlsl. It would have to be a subset of glsl at least, but I'm not sure how I could handle all the quirks related to that. Maybe it won't be as bad as I think though. I'm already on thin ice with this whole luajit only thing.