love - supporting multiple directories
Posted: Mon Oct 23, 2017 5:40 pm
I'm just getting started with Love2D, but I see the need for the love command to accept multiple directories, rather than just a single one.
I'd like to see these directories as a prioritized search order.
Why?
First: in local development, I may want to add some libraries to the mix that I don't want in my released game, such as cupid.
So I could put cupid and a for-development version of conf.lua in a dev directory, and everything else in a src directory, then invoke as "love dev src" to run my game; I actually have a tiny Makefile for running things.
Second: I'm also starting to experiment with using MoonScript. Here, I might want to have .moon files in my src folder compiled to an out folder, and I'll want that out folder visible when loading libraries.
Thoughts?
I'd like to see these directories as a prioritized search order.
Why?
First: in local development, I may want to add some libraries to the mix that I don't want in my released game, such as cupid.
So I could put cupid and a for-development version of conf.lua in a dev directory, and everything else in a src directory, then invoke as "love dev src" to run my game; I actually have a tiny Makefile for running things.
Second: I'm also starting to experiment with using MoonScript. Here, I might want to have .moon files in my src folder compiled to an out folder, and I'll want that out folder visible when loading libraries.
Thoughts?