mwg API
    Preparing search index...

    Function hexConeCells

    • A widening hex-grid cone, with width extra cells on each side at its far end.

      Parameters

      • origin: Step
      • target: Step
      • width: number

      Returns Step[]

      import { hexConeCells } from '@datamoc/mw_games/roguelike';
      const cells = hexConeCells({ x: 2, y: 2 }, { x: 5, y: 2 }, 2);