[Kde-games-devel] Sharing levels

onpon4 onpon4 at gmail.com
Sun Nov 18 02:59:55 UTC 2012


Thanks for the response!

> So I will have a look at your five-year old brother's levels, because it is
> time we had some easier ones in KGoldrunner … :-)

My brother's levels are not necessarily easier, in fact many of them
are quite hard and some are next to impossible. ;)

As an aside, I administrate a forum which is not very popular at the
moment (almost no posters), but is supposed to offer a place to share
levels in Lode Runner-type games: http://lrforever.forumotion.com

> I do not know Python well and KGr is written in C++.  So it
> is unlikely that I can use it, I regret to say.

Well, Python is normally included in and required by most (if not all)
GNU/Linux distros these days, so hypothetically you could just add
Python as a dependency and use my script externally. Or, since the
Python interpreter is written in C, you could just wrap the script in
calls for the Python interpreter and compile the resulting C program
as C++ code, assuming Python's source is compatible with C++.

But in truth, it's so simple that re-writing it in C++ would probably
be easier. Python is pretty easy to understand, I think, but I would
be happy to help with parts you find confusing. Most of it involves
interpreting the level files, so I imagine a good chunk of
KGoldrunner's code used for this purpose could be used, in which case
the only parts of my script you need to worry about are the pack and
unpack functions.


More information about the kde-games-devel mailing list