|
Post by zenkrye on Dec 19, 2017 16:50:54 GMT
I am trying to self contained functions in separate files then store the Lua and Images in a different folders from the main Lua program. Using doFile I can open the other Lua just fine but the program I am coming across is with the image path.
Can Ankulua support multiple image paths? it seems that I have constantly use setImagePath() in my main program if I changed it to accommodate one of my functions.
|
|
|
Post by zenkrye on Dec 19, 2017 17:51:07 GMT
nevermind, I found that I can just put the images under the main script path and reference them as follows:
imgPath = "Arena/"
Arena = { ArenaDiamond ={ P = Pattern(imgPath.."ArenaDiamond.png"), S = imgPath.."ArenaDiamond.png", }, }
|
|