Page 1 of 1

LÖVE as a module for standalone Lua?

Posted: Sun Sep 11, 2011 7:33 pm
by Rad3k
These questions are mainly to the devs (or other people who know their way around LÖVE sources):
1. Is this possible (without rewriting LÖVE from scratch)?
2. Would it take much effort to do it?

I know C++ pretty well (though I haven't programmed in it for few months), and I may even be willing to do this myself, but I don't want to dive into the code unless I know it's not a major challenge.

Re: LÖVE as a module for standalone Lua?

Posted: Sun Sep 11, 2011 7:46 pm
by bartbes
It is easy. In fact, if you compile it to a library it will already work. The big problem with this is you don't get any initialization.

If you look at boot.lua you'll see exactly how it works (since, from boot.lua's perspective, it already is just another module).

Re: LÖVE as a module for standalone Lua?

Posted: Sun Sep 11, 2011 8:35 pm
by Rad3k
It's awesome! I find LÖVE good not only for games, but also for some apps, and sometimes I'd like to use it more as a library (in a use-at-will manner) rather than complete framework.

Thanks :)

Re: LÖVE as a module for standalone Lua?

Posted: Mon Sep 12, 2011 4:45 pm
by TsT
Hello Rad3k

Take a look at my fakelove project.
I don't know if that could help you.

Regards,