Log in

View Full Version : Old sokoban clone ported for new devices


Rudism
10-07-2003, 09:43 PM
I was looking around for a good free sokoban clone for my h1910, but the only ones I could find were either shareware, or too limited (couldn't import external levels, annoying to control, etc).

Only decent one I could find was Warehouse Guy CE from True Dimensions (http://www.truedimensions.com/wguy/overview.htm), a port of a GPL'd sokoban clone originally written for KDE called KSokoban. KSokoban can import external level txt files, has scaling graphics to fit different size maps in a single screen, awesome control... The only sad thing is that TD's port is only written for older CE2.x devices with MIPS or SH4 processors.

I cried for a while... but then I remembered that GPL meant open source, and that I have a compsci degree... So I put 2 and 2 together and ported the bugger to ARM devices.

I also got rid of the weird command-bar thing at the top that has the menus in the original CE version, and replaced it with a normal PPC2002 menubar at the bottom. This meant losing the toolbar with icons for undo and stuff, but everything you could do with that you can do from the menus anyway, so no functionality has been lost.

It's really just a quick hack... I've never even coded anything for Windows before, let alone PPC... But it seems to work on my 1910 with no problems at all so far. So, I'm providing the binary for anyone else who likes sokoban and wants it on their ARM device, as well as the source code for anyone who wants to take a gander at my changes. Here are the links:

Just the .exe binary (no installer, sorry):

http://www.sitosis.com/~rudis/archives/WGuyCE_Arm.zip

Binary plus sources:

http://www.sitosis.com/~rudis/archives/WGuyCE_ARM_src.zip

Some nifty features:
- Can import external txt level files (http://www.sourcecode.se/sokoban/levels.php) for unlimited gameplay
- Great control using stylus (warehouse guy will automatically move to where you tap as long as he can without moving any gems)
- Scaling graphics to fit small and large maps alike into a single screen
- FREE FREE FREE!!! (Yay!)

I hope some other people out there enjoy this game as much as I do.

Blue Zero
11-04-2003, 05:17 AM
Wow... I really enjoy this game back in my days...

Thx :D