I’ve been reading json files from my content folder using the asset manager to fill my levels. Is there a method that I am not aware of that would allow me to also write files into my content folder? I’ve been using the standard java writer, but it limits my code to a specific platform.
Share
You cannot write files via PlayN APIs. PlayN games can be compiled to JavaScript and deployed in web browsers. There is no HTML5 API that allows you to write arbitrary data to the file system. There are proposed APIs, but they involve popping up “Save as…” dialogs and they are not widely available in any case.