This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nitrogenfingers's profile picture

[Game] Bank Vault

Started by nitrogenfingers, 08 September 2014 - 09:27 AM
nitrogenfingers #1
Posted 08 September 2014 - 11:27 AM


What is it:

This is an implementation of the 1981 puzzle game Sokoban (warehouse keeper in Japanese) by Thinking Rabbit for the NEC-PC. The goal is to rearrange the creates in the warehouse so they are all on the golden storage squares. You can only push the crates from behind, and only one can be pushed at a time. Sokoban puzzles are famously difficult to solve with a huge search tree. They are NP-Hard problems.

This version contains 3 level packs- the original 50 puzzles from the MS-DOS version of the game and two packs from Boxxle 1 and 2, which were both versions of the game released for the Nintendo gameboy.

Controls:

Arrows: Move your character
U: Undo the last move
R: Restart the level

Where to get it:

You can get an installer here: http://pastebin.com/5hwjT3Xe

More Levels:

The format for levels is incredibly easy- just follow the designs of those that exist. If you want to make your own, any text editor will be fine but keep the screen dimensions within those of the old levels. I haven't included a level editor, partly because of the simplicity of the format and partly because I don't think I'm capable of designing levels for this game.

For community made levels, you can find literally tens of thousands at the following website: http://www.sourcecode.se/sokoban/levels
Just choose a pack you like the look of, download the TXT version of the levels to your vault/level directory and select the pack from the main menu.

Future features
- A beginners mode that shows players if a move will render a crate immovable (and the level unwinnable)
- Scrolling support for smaller monitors, bigger levels and B/W support
- A better looking level select menu (ripped right from GoldRunner and hideous)
- Faster/nicer installer. Might release this separately?

As always, comments and bug reports very welcome. Thanks for playing!
Edited on 11 September 2014 - 04:56 PM
Mr. Bateman #2
Posted 08 September 2014 - 01:57 PM
I remember playing this as a kid, nice to see it reborn and flourish again.
TheOddByte #3
Posted 10 September 2014 - 08:19 PM
I have a bug report, it seems the installer errors at line 9 .-.
Just a question, why does it say "Installing to the following directory: snakemaze"? :P/>
nitrogenfingers #4
Posted 11 September 2014 - 10:16 AM
Argh, wrong file.

http://pastebin.com/5hwjT3Xe

Try that. Slow install, I have to rewrite that program…
Saldor010 #5
Posted 11 September 2014 - 11:33 PM
Very nice! One suggestion though, is either tell your players to use cd to reach the folder of the file, then open the game file, or be more descriptive when it comes to the error on line 514. Because I had to actually look into the code of the game to figure out what the heck the error meant when it said "Level directory is empty!"
cdel #6
Posted 14 September 2014 - 10:50 AM
is this using your gameutils api?