@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
12 lines • 719 B
TypeScript
/**
*
* @param {number[]|Uint8Array|Uint16Array|Float32Array} field
* @param {number} width X resolution of the search grid
* @param {number} height Y resolution of the search grid
* @param {number} start index of the starting position
* @param {number} goal index of the destination position
* @param {number} block_value value in the field that signifies impassible obstacle
* @returns {Array.<number>} array of indices representing path from start to end
*/
export function find_path_on_grid_astar(field: number[] | Uint8Array | Uint16Array | Float32Array, width: number, height: number, start: number, goal: number, block_value: number): Array<number>;
//# sourceMappingURL=find_path_on_grid_astar.d.ts.map