Gather files from another folder
Posted: Wed Oct 30, 2019 7:16 pm
Hello, new around here and I just have one question.
I have the folder structure like this to keep my files organized:
root
+ src
* player.lua
+ assets
* img
- panda.png
+ main.lua
But I want to retrieve the 'panda.png' from player.lua like love.graphics.newImage('./../assets/img/panda.png') but tells me the file doesn't exists, there's a special way to do it?
Thanks in advance
I have the folder structure like this to keep my files organized:
root
+ src
* player.lua
+ assets
* img
- panda.png
+ main.lua
But I want to retrieve the 'panda.png' from player.lua like love.graphics.newImage('./../assets/img/panda.png') but tells me the file doesn't exists, there's a special way to do it?
Thanks in advance