Resolves an area using the level's topology, including hex lines, cones and bursts.
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' }); Copy
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' });
Resolves an area using the level's topology, including hex lines, cones and bursts.