On Sun Sep 25 06:50:37 2011, DUFFEE wrote:
Show quoted text> Why does Games/Risk/App/Command/import.pm have
> "use 5.014;" when everything else is "use 5.010;"? It's the only reason
> that I couldn't install directly from CPAN.
import is using the /r regex modifier, new in perl 5.14
i really wondered whether to use it or sticking with 5.10... note
however that you don't need Games/Risk/App/Command/import.pm to play -
it's only used to convert a map from jrisk to prisk format.
Show quoted text> I was just curious if you had documentation for writing my own map, but
> really I should be writing my thesis and not having fun.
it's not that difficult:
1. create a lib/Games/Risk/Map/FooMap.pm, following an existing example
2. create a jpg/png background
3. create a gif black&white picture, with countries being paint by a
given grey value. eg: 1st country is painted by rgb(1,1,1), 2nd one by
rgb(2,2,2), etc.
or you can create a jrisk map (cf
http://domination.sourceforge.net/makemaps.shtml for instructions) and
convert it to prisk using "prisk import".
note that i intend to provide all jrisk maps
(
http://domination.sourceforge.net/getmaps.shtml) in additional
distributions. i already started, but it requries some change in the
sharedir / i18n handling.
oh - and get back to work! :-)