LÖVE as a module for standalone Lua?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Rad3k
Citizen
Posts: 69
Joined: Mon Aug 08, 2011 12:28 pm

LÖVE as a module for standalone Lua?

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post 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).
Rad3k
Citizen
Posts: 69
Joined: Mon Aug 08, 2011 12:28 pm

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

Post 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 :)
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

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

Post by TsT »

Hello Rad3k

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

Regards,
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 26 guests