Jump to content

need advice to publish levels, my level editor is finished


espace
 Share

Recommended Posts

Hi,

I managed to create a level editor in my game.

All my data is save with the local storage.

To go further i would give the possibility to the players to create themselve their levels.

My data are a json files.

What is the best solution to let the possibility to publish the json file somewhere and then get this information accessible to the players ?

The second question is how to create snapshot of these levels and store them also ?

Thanks for your advice.

Link to comment
Share on other sites

If you want people to be able to share in a nice way you'd have to expose a couple of endpoints and store them on a server somewhere.

My initial stab at this would be a service that exposes 2 endpoints, save and load, clients would supply a key and the json blob your editor creates, the service then makes sure that the key is unique in the system and saves the json blob to disk. The load endpoint does the same in reverse. From there you could build up to storing into a disk persisted db for better perf and then work on stuff like versioning. You'd probably want some sort of authentication system in place from the get-go.

If your levels exist entirely in json then surely saving at any point creates a snapshot? You just need to store them somewhere, if you created some sort of arbitrary naming scheme then that would suffice initially to know where to store and retrieve them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...