Jump to content

tilemap loading json string vs file


rpiller
 Share

Recommended Posts

I know I can load a json map file via game.load.tilemap(). However, I'm looking at using SignalR to make a multiplayer game and I want to send the json data (instead of a file) from the server to the client when the user logs in. Is there a way to load a map with json Tiled string instead of a file?

 

 

I want to do this because the entire map can be altered by the players so it can't be a static file that the client just downloads on start.

 

 

[EDIT]

Nevermind it looks like json string works as well in game.load.tilemap().

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...