
It also loads the levels from the level set XML into memory.
LevelSet - Contains all the information about a level set (author information, number of levels, etc.). If you retry a level and your performance is better, your scores are updated.īasically, the game consists of the following classes: It also saves the levels that you've finished and the scores (number of moves and pushes). It saves the last played level set and the last played level so you can continue where you left off the previous time you played the game. Sokoban Pro will automatically recognize the level sets when you put them in the levels directory. Level sets are stored in XML files, which means that you can download level sets from the different Sokoban sites on the Internet. Sokoban Pro comes with the first 40 levels from the original BoxWorld game. A level set contains as many levels as you like. After creating a player, you can choose a level set. Since Sokoban Pro saves your progress, you can also choose if you want to continue your previous game. When the game starts, you can create a new player or select an existing player. You can jump between different levels, but only to levels that you've finished before. I found it irritating that the window size changed with each level, so it has fixed size now. The latest version (v1.0b) includes the following improvements over the version on CodeProject: The latest version of the game, you can download at the Sokoban Pro website.
Because all the most important stuff (like reading/writing XML, moving and drawing) is in the source code here on CodeProject, I've decided to leave the first, original version here. You can undo your last moves by pressing U.Ī new version of the game is now available on the Sokoban Pro website. The rule of the game is to move all the boxes in the right places.
The game rules are extremely simple, yet the game is very challenging and addictive. Sokoban Pro is a modern version of the classic Sokoban puzzle game.