[Kde-games-devel] ksokoban

Łukasz Kalamłacki kalamlacki at gmail.com
Sun Jul 22 15:32:08 UTC 2012


Hi Ian,

I have just created project on sourceforge.net, which is available under 
link:
http://sourceforge.net/projects/ksokoban/
In current version you can compile it using gcc command like this which 
I used on Debian Wheezy:

gcc -I/usr/include/KDE -I/usr/include/qt4 -lkdecore -lkdeui -lkio *.cpp 
-o ksokoban -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore

So the Makefile is missing.
I rewrote only the part of the Anders Widell code so you can say that I 
ported this application for KDE4/Qt4 because the other part of code and 
the game logic are intact.

To be honest I was not aware about Magazynier game so I completly based 
on Anders Widell game.

The game in current status is playable, it uses the same configuration 
file like old KSokoban so when you have installed old KSokoban the 
configuration file will be used in the new KSokoban

When you run it in current version KSokoban will display some X warnings 
which do not influence onto the execution of the game itself. If someone 
finds solution on this I will be grateful for a patch.

W dniu 2012-07-22 14:35, Ian Wadham pisze:
> Hi  Łukasz,
>
> On 22/07/2012, at 6:48 PM, Łukasz Kalamłacki wrote:
>> I am software developer and I have just rewritten ksokoban game from kde 3 to kde 4 so that the game can be executed without qt3 or qt3support libraries, The one thing have left, preparation of makefiles.
> That's very interesting.  Back about five years ago some members of our group
> looked at KSokoban's KDE 3 code and decided it was too difficult to port and would
> have to be re-written.  We had twenty or thirty games to port at that time and we just
> did not have the resources to re-write any games, so we had to let KSokoban go.
> Have you re-written it from scratch or have you ported the KDE 3 KSokoban code?
>
> Later I started to re-write KSokoban, but then another guy came along with a re-write of
> KSokoban called Magazynier.  He was ahead of me in his work, so I agreed to stop.
>
> Unfortunately, Magazynier never got finished.  You can find it in SVN playground.
> See http://websvn.kde.org/trunk/playground/games/magazynier/
>
> The problem with porting the original KDE 3 KSokoban was that it contained a
> large slab of uncommented C-like code that generated other C-like code, that got
> compiled and linked back in --- a bit like going from London to Paris via Moscow.
> That code was very difficult to understand.
>
> So I am interested to know exactly what you have done - a re-write or a port?   If a port,
> there was more to do than just replacing KDE and Qt library references.  Can you tell
> us more?  And is your code on a repository somewhere?  Is it tested and working?
>
>> Do you think that ksokoban could be included in kde-games 4 package again?
>> Who decides about this?
> I would dearly like to see that happen, but the quality and maintainability of
> the original KSokoban code was not good.  I was not the only person who
> thought so.  All the games that failed to get into KDE 4 were put to a vote.
>
> Anyway, please tell us more.  And please have a look at Magazynier.  Is it
> anywhere near complete?
>
> Cheers, Ian W.
>
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel



More information about the kde-games-devel mailing list