ashleynewson / openra-map-generator

Experimental random map generation for OpenRA
MIT License
0 stars 0 forks source link

Reserve paths before adding forests or semi-decorative debris #12

Closed ashleynewson closed 2 weeks ago

ashleynewson commented 1 month ago

Minimal paths connecting playable areas could be identified by shrinking playable space until separate non-playable spaces meet.

Minimal paths could then be re-expanded by some amount to create a reserved space that semi-decorative obstructions must not be placed in.

The shrinking process could be biased with 2d noise to avoid unnatural looking cut-outs right in the middle of playable space.

ashleynewson commented 2 weeks ago

This can borrow the Voronoi processing logic from the road generation work.

ashleynewson commented 2 weeks ago

Done