threejs-worldgen
    Preparing search index...

    Function planFarm

    • Plans a farmstead: a farmyard on dry, gentle ground near the settlement's position (moved up to search metres, else no farm), a farmhouse, a barn, silos and a machine shed in it, a dirt driveway to the nearest point of farm.road (or of a country road laid past it), and fields around it, split into a patchwork aligned with the driveway, kept off water, roads and steep ground, each with a crop picked by the climate. Pure and deterministic. A generator like planCity (which calls it for size: 'farmstead').

      Parameters

      Returns Generator<void, CityPlan>