How do I save the game in a web game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Juliang2000

Hi, I’m creating a web game and I would like to know how I can save a game with different users that play at the same time

Well, like on the desktop. You write to a file in the ‘user://’ path. This will be mapped to html local storage (in the user’s browser).

If you need some global space to store things (i.e. global high score) then you’d need a server + http(s) requests.

wombatstampede | 2020-01-20 17:24