3

I was looking at the "wiki" for LibGDX and I don't see a method to save or load when using HTML5. Could anyone point me in the right direction on how I can go about saving and loading files in HTML5 via LibGDX?

I know it is possible with HTML5 just not sure how to do it through LibGDX.

Hamy
  • 20,662
  • 15
  • 74
  • 102

1 Answers1

2

The File handling wiki says, that on HTML5 only Gdx.Files.internal is available.
Gdx.Files.internal is read only, so you can only load data from there.
there is one other possibility: The Preferences.
The wiki says:

Preferences are also the only way to date to write persistent data when your application is run in the browser.

This means, that only this way you can sava and load data.

Robert P
  • 9,398
  • 10
  • 58
  • 100