Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Lua support #74
From the blog post and the intent to keep the "love" namespace and similar logo it appears that the goal is to be compatible with the Löve API and that lua support from this ticket would in the end be meant to allow running Löve games in chailove.
However, it's not clear to me to which extent is this the intention, it seems to me that the API is love inspired but not really fully compliant. Is the goal to progressively get closer to full compliance? There are also things that wouldn't be directly translatable from lua to chaiscript, like how some love functions might return more than one return value simultaneously, which is something that Lua allows but chaiscript does not, I believe.
Also, is it the intent that chailove should eventually replace lutro? It seems both projects kinda conflict, specially if chailove eventually could run love games.
This issue was mostly out of curiosity. Since the scripting language is so detacted from the rest of the system in ChaiLove, it is possible that we could support both ChaiScript and Lua. Detect if there's a main.chai or a main.lua, and load it accordingly. In the PR, I had troubles compiling Lua correctly.
Some of the goals between the two projects differ. Lutro, for example, aims to be as minimalistic as possible (implements its own graphics engine, etc), while ChaiLove brings in SDL to ease the development process.
ChaiLove doesn't mean to replace Lutro, but add to the game development ecosystem within libretro.
Would be pretty great if ChaiLove could run Love games. That's a far way off, but would be a neat achievement. Lutro is a ways from that too, but who knows!