mwg API
    Preparing search index...

    Function resolveAreaOnLevel

    • Resolves an area using the level's topology, including hex lines, cones and bursts.

      Parameters

      Returns Step[]

      import { Level, FLOOR, resolveAreaOnLevel } from '@datamoc/mw_games/roguelike';
      const level = new Level(8, 8, [{ passable: true, transparent: true }, FLOOR], 1, 'hex');
      const cells = resolveAreaOnLevel(level, { x: 2, y: 2 }, { x: 4, y: 2 }, { kind: 'line' });