BehindTheHedge: Random Maps
In a recent post I briefly mentioned that unC0Rr and nemo are working on improving random map generation.
In this post I will talk a bit more about this topic.
First of all I collected some new previews, in order to make this little gif-animation, which will keep distracting your eyes while you read this post (you're welcome!):
As you (hopefully) can see, the resulting maps look more diverse than those we had in the past.
How does Hedgewars generate random maps?
Randomly generated maps are mostly just random changes to curves that describe the shape of the landscape.Those curves are predefined in templates.
Two generated maps will sometimes look similar, if they are based on the same template. Even although the maps are not actually the same.
Why did you decide to change map generation?
We want the generated maps to be as interesting and diverse as possible.And we hope to reduce the amount of "déjà vu"-experiences while generating maps.
Also:Science must be done!
What about map generation is being changed?
We started to use Perlin noise (explanation by Matt Zucker - pictures!) to make the landscape curves curvier; to give them more detail. This results in more interesting shapes.We also have been experimenting with "pure" Perlin noise maps.
Those are maps that are not based on any curve templates:
- Perlin noise is generated for the whole map
- The result is split into its bright and dark areas to decide where land is and where isn't.
- After that some parts are added/removed/tweaked to make it an interesting battlefield (e.g. removal of ceilings in a non-cavern map)
nemo predicts/hopes there will be "perlin land" and "perlin tunnels" in next release.
Talk about release... next release date plz?
MuwahahahahAHAHAHAHA... we'll see.Or as Koda said: "we cannot confirm nor deny that there will be a release"
Feel free to let us know of your opinion or any arising questions!
PS: I plan to make BehindTheHedge a series about hedgewars development.
The idea is to give insight into what the developers are doing without getting too technical.
(But there might be links to deeper, technical explanations - for those who care).
- sheepluva's blog
- Login or register to post comments
Star and Moon
This is really awesome, making random more random. In an unrelated note I want to play hedgewars again and make hedgewars comics again but I keep forgetting to rip the files off my old cpu's hard drive...
In an even unrelateder note how do you make those images or use inkscape in general.
sheepluva
Hm.
mikade
Nice post! The experimental terrain gen is one of the first things I noticed last time I spun up my development clone. It will be neat if this can make it into the next stable release, whenever that is.
Lately I've been updating my old HedgeEditor and making it compatible with the latest version(s). I'm also working on the concept of a few racer maps that use weapons/utilities outside of rope.