So after I have remote loading, checksums and all my files (sheets and coordinate files) written to the correct directory, how do I read them for use? require(path) fails, even if I remove the .lua extension. I’m not entirely sure I can even use the png sheet from the directory. I can’t find any information anywhere.
What all files are you downloading? I don’t believe we allow requiring .lua files from any where other than the resource bundle (i.e. the folder and subfolders where main.lua exists).
But you should be able to use .png files to load imageSheets. You should be able to load .json files to get coordinates to build the lua table needed for your sprite sheet.
Rob
But you should be able to use .png files to load imageSheets. You should be able to load .json files to get coordinates to build the lua table needed for your sprite sheet.
That’s…disappointing. For sake of caching resources (partly the reason for doing this at all), I’d think to pull down the data as json files then read those, json decode, use.
That you can do. What you can’t do is require a .lua file.
Rob
What all files are you downloading? I don’t believe we allow requiring .lua files from any where other than the resource bundle (i.e. the folder and subfolders where main.lua exists).
But you should be able to use .png files to load imageSheets. You should be able to load .json files to get coordinates to build the lua table needed for your sprite sheet.
Rob
But you should be able to use .png files to load imageSheets. You should be able to load .json files to get coordinates to build the lua table needed for your sprite sheet.
That’s…disappointing. For sake of caching resources (partly the reason for doing this at all), I’d think to pull down the data as json files then read those, json decode, use.
That you can do. What you can’t do is require a .lua file.
Rob