Page 1 of 1

Using external library with LOVE?

Posted: Sun May 06, 2012 11:45 pm
by Axe
Hello,

I am just investigating LOVE2d (and Lua), and was wondering if it is possible to use other Lua libraries together with Love2d. Such as using the proteaudio library with love2d. The proteaudio library: http://viremo.eludi.net/proteaAudio/proteaaudiolua.html

If so how is it accomplished?

Thank you for any info, much appreciated.

Axe

Re: Using external library with LOVE?

Posted: Mon May 07, 2012 12:32 am
by dreadkillz
Yes, you can use external libaries. Since LOVE uses standard Lua 5.1 as its backend, you can use 5.1 compatible modules.
See http://www.lua.org/manual/5.1/manual.html#pdf-require . Also see http://lua-users.org/wiki/LuaAddons for libraries/modules (there are many).

If you want to test non-LOVE specific modules, you can download and use the stand alone interpreter from the official webpage (also good for experimenting in Lua too).

If you want to learn more about loading external libaries, read Chapter 15 in http://www.lua.org/pil/index.html.

Re: Using external library with LOVE?

Posted: Mon May 07, 2012 12:36 am
by Axe
Hello,

Thanks very much for the info.

Sincerely,
Axe