A Sokoban Engine for Playdate
Playdoban is a remake of the classic sokoban game.
You as the player need to push boxes to specific locations in the level. Once all boxes are pushed to the correct spots the level is finished.
Playdoban is basically a sokoban engine, it contains all the game rules and has the ability to use level packs. It’s possible to create your own levelpacks using the built in Level editor and share them with other players. The game comes preloaded with a select few ascii (.sok / .txt) levelpacks with a total amount of nearly 2000 levels to start with but you can download more from the internet. The game engine also has an undo system for up to 1000 moves.
This version is a cleanup of my old gp2x version, using open source assets and adapted code.

Playdoban Will start up at a main menu, here you can choose the level pack you wish to edit or play by using left and right when the level pack name is selected (it’s between “<>” signs). If you are new to Sokoban i suggest that you play the “pimpernel” or “SokWhole” level pack first since these are not so hard to solve. When a level pack is loaded either for game play or level editing, the level selector will show up. Here you select what level you wish to edit or play, if it has been unlocked yet. After you solved a level one extra level will be unlocked. you always have to solve to last unlocked level in order to unlock the next one.
If you wish to create levels yourself, load up the level editor and create a new level pack. You can choose a name for the levelpack by using up down left right and confirm the name by using A. Once a new level pack has been created you can then load it, and you will be in the level selector. just press A or select “Create Level” from the menu and start creating your own levels. The level editor will know when a level has been changed, so it will ask you, if you want to save whenever you quit back to the level selector. The level editor will also automatically choose a filename for the levels, you don’t need to worry about this. Once your level pack is finished you can just zip your level pack directory and release it to the public. They will then have to unzip your level pack in the level packs directory and it will be shown inside the game.
User made levels and packs are saved in the “levelpacks” folder from the games data folder.
Newly made levelpacks on the playdate are names [name]._lev, if you want to release this level pack for other people to play it, it is best that you rename the folder to just [name] leaving out ._lev at the end.
This will make sure that users when they place your level pack in the levelpacks subfolder of the game’s data folder can’t delete it from within the game.
You can only delete level packs that you created yourself using the build in delete level pack option, so basically levelpacks named [name]._lev as folder. if you edited levels for existing level packs it will only delete those modified or newly created levels.
This version of sokoban supports .sok and .txt files that define sokoban levels in a text file format. There are only a select few of these preinstalled but you can however get extra of such files from the following sites:
Once downloaded copy them in the levelpacks subfolder of the game’s data folder
| Button | Action |
|---|---|
| A | Confirm in menus, level selector and questions asked, place a part in the level editor |
| B | Quit to title screen on the level selector, Quit to level selector in game and level editor mode. |
| CRANK | At the level Selector inc/decrease selected level with 10. In the level editor select previous/next part |
| DPAD | move main player |
Game is an adaptation from the gp2x version i (willems davy, aka joyrider3774) initially made many years ago
The Game uses Levels created by different Authors almost all levelpacks are loaded through level set sok files.
I used the sok files available for download on http://sokobano.de/en/levels.php as they contained the Authors as well as the title of the levels and comments in the files. I implemented a parser for these levels so they can now be used with the game.
Back when i initially created the game for the gp2x i had my own format and this is still used when people create their own levels (inside the game). One such level pack that is still available like this is the “pimpernel” level pack.
Below you can find all authors and details for the different .sok files that is supplied with this game.