Here comes the second part of my map generation experimentations.
This time I wanted to generate more linear maps, for side quests. So I took a different approach.
1. The map is divided into smaller squares.
2. Some adjacent squares are connected (without creating a loop).
3. A random position is calculated inside every square.
4. A line is drawn between connected squares.
(At this stage I have basic path ready and I can start image processing)
5. The map is blurred using boxblur. (it makes minimal passable path, thats also saved for later use)
6. The map is blurred even more.
7. Some layers of simplex noise is added.
8. Minimal passable path made at step 5 is added.
9. Unreachable areas are cleared out.
DONE!
Previous pictures are threshold results of the map, actual steps are performed on 2D array of floats.
Hey this game looks awesome. /genericcomment
I don't think you should change the pixel art style to the smooth one...unless you could have an option to use either!
Yeah, I like the idea of adding option to change graphic style. But the fancier graphics will be one of the last thing I'm going to do.
I like the masking effect - very cool! What's the control scheme? The movement makes it looks like a handheld controller, is it also playable with a keyboard/mouse?
It's actually keyboard/mouse only right now but controller support should be really easy to add. I haven't made keyboard remapping yet but it's mandatory feature in nowadays game.