Gobhniu
Gobhniu

Reputation: 275

Saving data offline

I am working on a small management game made with html/css and javascript. The all thing is offline, there is no server side, I only use html as a GUI.

The player should be able to save his progress, so I am looking for a way to save data on the client side. The data will be about 200/300 objects with about 10 variables in each.

Is there a way to create a “save file” or some kind of database with javascript?

Upvotes: 1

Views: 521

Answers (1)

Rounin
Rounin

Reputation: 29493

The player should be able to save his progress, so I am looking for a way to save data on the client side. The data will be about 200/300 objects with about 10 variables in each.

You can save JSON to WebStorage

Use either:

Upvotes: 2

Related Questions