← ClaudeAtlas

unity-2d-gridlisted

Grid tactics and tile puzzles, hex or square: move range, A* paths, line of sight, turns, undo.
tipoLi5890/unity-dev-skills · ★ 2 · AI & Automation · score 75
Install: claude install-skill tipoLi5890/unity-dev-skills
# unity-2d-grid — the cell map is the truth and the transform is an animation of it > **A piece is in its new cell from the instant the rule says so; the sprite gets there 0.12 s > later.** Every rule — may I step, what is in range, who is hit, is it solved — reads a map of > cells and answers at once. Nothing in the rules reads `transform.position`, waits for a tween or > asks a collider. The scene only ever *shows* a board that has already changed. ## Start here — the situation, and what to read | The situation | Read | |---|---| | The board as one class: `YardBoard`, step, push, undo, EditMode tests, the presenter, the probe | `reference/board-first.md` | | Cell vs world, cell centre vs cell origin, hexagonal offset ↔ axial ↔ cube, the flat-top turn, isometric and Z as Y, `Vector3Int` or a struct of your own | `reference/coordinates.md` | | "The unit steps sideways on every other hex row"; 4, 8 and 6 neighbours; Manhattan, Chebyshev, octile, hex distance; movement range with terrain cost ("the move range goes through walls": a flood, §4); attack rings and lines | `reference/neighbours-and-range.md` | | A* on a board, the heap, heuristics per metric, "the path clips the corner", units that block or pass each other, reusing buffers, is this push puzzle solvable | `reference/pathfinding.md` | | Can this cell see that one; a line through a corner; hexagonal lines; field of view; fog of war | `reference/line-of-sight.md` | | "Two units ended on one cell"; "undo leaves the pi