narrator icon indicating copy to clipboard operation
narrator copied to clipboard

Added love demo

Open flamendless opened this issue 4 years ago • 5 comments
trafficstars

flamendless avatar Sep 26 '21 02:09 flamendless

Sorry for the delay, but I need time to improve something in this request.

astrochili avatar Oct 05 '21 15:10 astrochili

Сan we place it to the example-love folder and keep it working?

astrochili avatar Oct 11 '21 19:10 astrochili

You would have to copy the narrator script inside that folder as well since require paths in love is relative to where the main.lua is

flamendless avatar Oct 11 '21 23:10 flamendless

You would have to copy the narrator script inside that folder as well since require paths in love is relative to where the main.lua is

Ideally it would be enough to add package.path = package.path .. ";../?.lua" to the beginning of main.lua, but for some reason it does not work - love does not see the file in the path ../narrator/narrator.lua. Any ideas why?

astrochili avatar Oct 12 '21 07:10 astrochili

You would have to copy the narrator script inside that folder as well since require paths in love is relative to where the main.lua is

Ideally it would be enough to add package.path = package.path .. ";../?.lua" to the beginning of main.lua, but for some reason it does not work - love does not see the file in the path ../narrator/narrator.lua. Any ideas why?

Thats really just how love handles filesystems and paths (a limitation for now), but in next major release i believe that that filesystem limitation would not be an issue anymore.

flamendless avatar Oct 12 '21 08:10 flamendless