Rules Current Competition Submit a solution Submission table - ALL Submission table - Main Submission table - Ext Submission table - Ext2 Submission table - Ext3 Hall of Fame Past Competitions About
比赛规则 本期比赛关卡 提交答案 提交列表(全部) 提交列表 - 1 提交列表 - 2 提交列表 - 3 提交列表 - 4 荣誉殿堂 往期比赛 比赛简介 比赛诗选
歪推箱子 推箱子加加 睿斗推箱子 推箱快手(安卓版) 推箱快手(Windows) 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动画制作教程 逆推教程 推箱子文档下载
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