SokoPlayer HTML5 is able to load a level from URL parameters. So you can share a level with your friends with just a hyperlink by email or on your blog.
Click the following example to see how it works.
The url parameters are in the following format.
?w=%1&h=%2&lvl=%3
Below is the full url with the parameters.
http://sokoban.ws/sokoplayer/?w=%1&h=%2&lvl=%3
The complete url of the above example:
%1 and %2 are the width and height of the level, respectively. %3 is the level in MF8 format with line separator "|" (no line separators at the beginning or at the end). We don't want to invent a new format for Sokoban levels, but some letters (for example '#') used in the widely-accepted XSB format don't work in a URL. So MF8 format is a easy way to solve this problem. A better solution is to use compressed encoding but it requires a little more work. A compressed encoding can easily shorten the url length by two thirds.
_ -- floor H -- wall a -- player x -- player on goal $ -- box * -- box on goal . -- goal
You can convert a XSB level to a URL easily with SokoPlayer HTML5. First load the level into SokoPlayer HTML5, then click the button "output url" and you will see the URL in the output textarea.
You can also use SokoEditor HTML5 to edit levels online and export the URLs.