Using external library with LOVE?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Axe
Prole
Posts: 2
Joined: Sun May 06, 2012 11:38 pm

Using external library with LOVE?

Post 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
User avatar
dreadkillz
Party member
Posts: 223
Joined: Sun Mar 04, 2012 2:04 pm
Location: USA

Re: Using external library with LOVE?

Post 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.
Last edited by dreadkillz on Mon May 07, 2012 12:46 am, edited 2 times in total.
Axe
Prole
Posts: 2
Joined: Sun May 06, 2012 11:38 pm

Re: Using external library with LOVE?

Post by Axe »

Hello,

Thanks very much for the info.

Sincerely,
Axe
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest