This commit is contained in:
33333-33333 2026-05-21 03:13:39 +09:00
commit f420a3f8f3
13 changed files with 396 additions and 325 deletions

View file

@ -1,5 +1,4 @@
import { MAP_W, MAP_H, CELL_SIZE, indexOf } from "./mapGenerator.js";
import { clamp } from "./grid.js";
import { CELL_SIZE, MAP_H, MAP_W, clamp, indexOf } from "./mapUtils.js";
function distToNearest(points, x, y, fallback = 999) {
let best = fallback;