glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] Map generator.


From: Jérôme M. Berger
Subject: [glob2-devel] Map generator.
Date: Mon, 14 Jun 2010 21:36:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.23) Gecko/20100205 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

        Hi,

        I have written a new map generator function for glob2. You can view
a couple of samples here: http://jeberger.free.fr/glob2/rough-maps.zip

        While they are not as good as hand-crafted maps (of course), I
believe them to be better than the other available generators.

        My code is available as a Mercurial patch queue here:
http://bitbucket.org/jmb/map-generator/

        There are three patches in the queue:

 - The first one fixes a bug in the current generator code: try to
make a map with no desert but a lot of fruit and you will get a map
with a lot of desert. The "fix-weights.patch" patch fixes that;

 - The second one changes the way the generator chooses between
wheat and wood. There are two reasons to do that: first my code
allows the wheat and wood sliders to mean something, second the
existing code doesn't work for my new generator: wheat and wood wind
up completely mixed together. The "smooth-wood-wheat.patch" patch
uses weighted Perlin noise to choose between wood and wheat;

 - And finally the third patch, "rough-map.patch", adds the new map
type.

        Note that the patches were actually done over the
http://hg.globulation2.org/glob2-new repos rather than the bitbucket
one (which is slighly out of date).

                Jerome
-- 
mailto:address@hidden
http://jeberger.free.fr
Jabber: address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]