3

How third-party libraries in Lua usually handled?

For example, I want to use the HUMP library for my LÖVE application.

What should I do then? Is there any popular package manager? Or should I just place libraries under "vendor" / "libs" directory in the project's root folder?

FrozenHeart
  • 19,844
  • 33
  • 126
  • 242
  • 1
    Possible duplicate of [Lua's package management system?](http://stackoverflow.com/questions/8797451/luas-package-management-system) – Piglet Jun 14 '16 at 10:35
  • For Lua package management see http://stackoverflow.com/questions/8797451/luas-package-management-system You can place libraries wherever it suits your needs. If you use them exclusively for one project then have it with the project. If you don't like that or you share it across several projects use a common folder... – Piglet Jun 14 '16 at 10:36

1 Answers1

3

Lua uses a package manager called LuaRocks.

However, HUMP, and most other third party libraries for LOVE do not have a rock (package) for LuaRocks, and thus cannot be installed/handled that way. There is no definitive convention for including 3rd-party libraries in a LOVE project. It's usually up to the project developer. However, there is a Thread on the forum where people talk about how they organize their projects that should be of use to you.

Alchemist
  • 103
  • 9