save date in file

12 views
Skip to first unread message

Maurizio C

unread,
Nov 1, 2019, 5:08:47 AM11/1/19
to excaliburjs
hi is possible save date game in a file?

Erik Onarheim

unread,
Nov 15, 2019, 7:43:27 AM11/15/19
to excaliburjs
Hi Maurizio,

Currently Excalibur has no built in facilities for saving game state. This may be a feature we'd want to add if you have any proposals https://github.com/excaliburjs/Excalibur/issues

We've experimented with browser local storage, and some server side techniques in the past. It should be possible to generate a file with the state for your game and re-load it back into the browser and configure your game accordingly.

This repo has an example of saving a data file down/uploading a file to javascript (using json would probably be easier)

Let me know if you have any questions,
Erik
Reply all
Reply to author
Forward
0 new messages