Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,我从大学早年开始就一直在制作一些迷你游戏,但它是用 C++ 编写的它到 lua 并开发到 lua 游戏引擎,如 love2d 和 moai?
是的你可以。
您需要遵循一些规则才能正确获取函数签名(要从 Lua 脚本调用的 C++ 函数)。
有很多教程(例如这里和这里)和库可以帮助您做到这一点。