Another Game from the Past…
I’ve always liked Sokoban — simple, yet challenging
This B4J version isn’t bug-free — there are a few small issues here and there. Unfortunately, I won’t have time over the next few weeks to debug everything, so I’m posting the code here in case someone feels like finishing or tinkering with the game.
So yeah — a Sokoban clone with a few features already in place.
Have fun hacking around with it or just playing a few levels
level can be found here: http://sokobano.de/en/levels.php
the attached example skins must have a copyright, but I could not find the author
I’ve always liked Sokoban — simple, yet challenging
This B4J version isn’t bug-free — there are a few small issues here and there. Unfortunately, I won’t have time over the next few weeks to debug everything, so I’m posting the code here in case someone feels like finishing or tinkering with the game.
Functionality Overview:
- Standard Sokoban Clone
- Supports most common level file formats.
- LP0 support is rudimentary, as I couldn’t find a proper format description.
- Reads RLE level files.
- Supports various skin formats, including:
- Individual image files
- Sprite sheets with a configuration file e.g. Sokoban
- The sprite managerautomatically loads all available tiles.
- Animation graphics are also loaded and assigned, but the display code is missing.
- The autotiler generates missing edge pieces for skins on the fly.
- This mostly works well, but there's a known issue with inner corners: part of the outer border isn't being removed correctly. I've already spent quite a bit of time on this but haven’t been able to pinpoint the problem yet.
- The solver is based on A* and works quite well for small to medium levels.
- Levels with more than 8 boxes, or with long tunnel structures, usually remain unsolved.
- Different solving algorithms would be needed for those.
So yeah — a Sokoban clone with a few features already in place.
Have fun hacking around with it or just playing a few levels
level can be found here: http://sokobano.de/en/levels.php
the attached example skins must have a copyright, but I could not find the author
Attachments
Last edited: