I have the following file system:
Code: Select all
project
|_ engine
| |_ images.lua
|
|_ tilemaps
| |_ export
| |_ textures
| | |_ tileset_0.png
| |
| |_ worlds
|
|_ main.lua
Code: Select all
local img = lovae.graphics.newImage("tilemaps/worlds/../export/../export/../textures/tileset_0.png")
im getting the error:
Code: Select all
Error: engine/images.lua:14: Could not open file tilemaps/worlds/../export/../export/../textures/tileset_0.png. Does not exist.
I don't get it. What am I missing?