Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added love demo #6

Closed
wants to merge 1 commit into from
Closed

Added love demo #6

wants to merge 1 commit into from

Conversation

flamendless
Copy link
Contributor

No description provided.

@astrochili
Copy link
Owner

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

@astrochili
Copy link
Owner

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

@flamendless
Copy link
Contributor Author

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

@astrochili
Copy link
Owner

astrochili commented Oct 12, 2021

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?

@flamendless
Copy link
Contributor Author

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 flamendless closed this by deleting the head repository Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants