Rules Current Competition Submit a solution Submission table - Main Submission table - Ext Competition results Hall of Fame Past Competitions About
比赛规则 本期比赛关卡 提交答案 提交列表 - 1 提交列表 - 2 比赛结果 荣誉殿堂 往期比赛 比赛简介 比赛诗选
歪推箱子 推箱子加加 睿斗推箱子 推箱快手 SokoPlayer SokoPlayer HTML5 USokoban [Linux] SokoFind LURD2XSB 推箱子工具 [Utilities] 推箱子变种 [Variants]
关卡平台 sokoban.org 字母表 [alphabet] 十二生肖 [zodiac] 2012精选 [bestof2012] 2013精选 [bestof2013] 关卡答案
MF8论坛推箱子版 百度贴吧推箱子 QQ群:92017135
XSB2MF8 [中文] XSB2MF8 [English] XSB2MF8 [sokojava] 关卡旋转工具 LURD2XSB工具 LURD转换工具 推箱子GIF动画制作教程 [skyivben] XSB2image [skyivben] image2XSB
推箱子常见问答 [FAQ] 推箱子格式 [XSB & Lurd] 推箱子基本概念:空位 推箱子新手之路 推箱子GIF动画制作教程 逆推教程 推箱子文档下载 推箱子相关博客文章
HTML5地理小测验 HTML5图论小工具 HateTris
SokoPlayer HTML5 SokoPlayer JavaApplet USokoban [Linux] sokoban.py Sokoban.WS Tools SokoFind SokoLines HTML5
推箱子常见问答 [FAQ] 关于推箱子 [XSB & Lurd] 推箱子文档下载 关于比赛 关于本站 墙纸下载 [Wallpaper] 友情链接 [Links] 我的博客 [Blog] Credits

How to share a level with SokoPlayer HTML5

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.

An Example

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.

MF8 format

_  -- floor
H  -- wall
a  -- player
x  -- player on goal
$  -- box
*  -- box on goal
.  -- goal

XSB to URL

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.


Created on Jan. 12, 2012