@codexo/exojs-pathfinding 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,172 +1,45 @@
|
|
|
1
1
|
# @codexo/exojs-pathfinding
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
over pluggable navigation spaces: weighted grids for top-down worlds, waypoint graphs for
|
|
5
|
-
platformers and for graphs that have no geometry at all.
|
|
3
|
+
Weighted-grid and waypoint-graph path queries for ExoJS. Use it to find a route through your navigation model; movement, collision response, animation, and special traversal remain gameplay responsibilities.
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
construct a space and a `Pathfinder`, and you own both.
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
5
|
+
## Install
|
|
11
6
|
|
|
12
7
|
```sh
|
|
13
|
-
npm install @codexo/exojs @codexo/exojs-pathfinding
|
|
8
|
+
npm install --save-exact @codexo/exojs @codexo/exojs-pathfinding
|
|
14
9
|
```
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
depend on `@codexo/exojs-tilemap`: feeding a tilemap into a grid is three lines of your code,
|
|
18
|
-
shown below.
|
|
19
|
-
|
|
20
|
-
## What this package provides
|
|
21
|
-
|
|
22
|
-
- `Pathfinder` - runs the queries and owns the reusable search buffers.
|
|
23
|
-
- `GridSpace` - a finite window of weighted cells, with diagonal policies, per-cell costs,
|
|
24
|
-
clearance for wide agents, string-pulling path smoothing, and a jump-point fast path.
|
|
25
|
-
- `WaypointGraph` - a directed graph of hand-placed nodes whose edges carry a `kind` and a
|
|
26
|
-
payload, so a path can tell a jump from a walk.
|
|
27
|
-
- `NavigationSpace` - the interface both implement, and the one your own space implements when
|
|
28
|
-
neither fits.
|
|
29
|
-
|
|
30
|
-
## Capability matrix
|
|
31
|
-
|
|
32
|
-
| Capability | `GridSpace` | `WaypointGraph` |
|
|
33
|
-
| ----------------------------------- | ------------------------------------------- | -------------------------------- |
|
|
34
|
-
| Per-step costs | per cell, `0` blocks | per edge |
|
|
35
|
-
| Heuristic | octile / Manhattan, scaled by cheapest cell | straight-line distance |
|
|
36
|
-
| Directed traversal | no - movement is symmetric | yes |
|
|
37
|
-
| Traversal kinds (`walk`/`jump`/...) | no | yes, with an arbitrary payload |
|
|
38
|
-
| Positionless (pure Dijkstra) | no | yes, when a node has no position |
|
|
39
|
-
| Clearance / wide agents | yes, `agentSize` | no |
|
|
40
|
-
| Path smoothing | yes, string pulling | no |
|
|
41
|
-
| Jump-point pruning | yes, on a uniform-cost grid | no |
|
|
42
|
-
| Mutable at runtime | `setCost` | `addNode`/`addEdge`/`remove*` |
|
|
11
|
+
This is a directly used library. It has no application extension descriptor or global registration step.
|
|
43
12
|
|
|
44
|
-
##
|
|
13
|
+
## Find a route on a grid
|
|
45
14
|
|
|
46
15
|
```ts
|
|
47
16
|
import { GridSpace, Pathfinder } from '@codexo/exojs-pathfinding';
|
|
48
17
|
|
|
49
|
-
const grid = GridSpace.from(
|
|
18
|
+
const grid = GridSpace.from(12, 8, (x, y) => (x === 5 && y !== 4 ? 0 : 1), {
|
|
50
19
|
cellSize: 32,
|
|
51
20
|
});
|
|
52
21
|
const pathfinder = new Pathfinder();
|
|
22
|
+
const route = pathfinder.findPathBetween(grid, 16, 16, 336, 208);
|
|
53
23
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
if (result.status === 'found') {
|
|
59
|
-
hero.follow(result.points);
|
|
60
|
-
}
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
`findPath` takes node ids, `findPathBetween` takes world coordinates. Both return the same
|
|
64
|
-
`PathResult`, and `status` is a value rather than an exception, because "no path" is an ordinary
|
|
65
|
-
game state:
|
|
66
|
-
|
|
67
|
-
| `status` | Meaning |
|
|
68
|
-
| ----------------- | -------------------------------------------------------------------- |
|
|
69
|
-
| `found` | Complete, cost-optimal path. |
|
|
70
|
-
| `unreachable` | The search exhausted the space. Empty path, unless `snapToNearest`. |
|
|
71
|
-
| `budget-exceeded` | `maxExpandedNodes` ran out. The best partial path is still returned. |
|
|
72
|
-
|
|
73
|
-
`result.revision` records `space.revision` at search time, so a follower can notice that the
|
|
74
|
-
world changed under its path and ask for a new one.
|
|
75
|
-
|
|
76
|
-
## Grids
|
|
77
|
-
|
|
78
|
-
Coordinates are absolute cell coordinates - the same numbers your map uses - not offsets into
|
|
79
|
-
the window. The window itself is finite by construction, and everything outside it is blocked;
|
|
80
|
-
that is the answer for infinite or streamed maps: size the window to the region the actors are
|
|
81
|
-
in, and push chunk changes into it with `setCost`.
|
|
82
|
-
|
|
83
|
-
```ts
|
|
84
|
-
// Streamed tilemap, no package dependency in either direction.
|
|
85
|
-
const window = GridSpace.from(96, 96, (x, y) => walkCost(map.getTileAt(layerId, x, y)), {
|
|
86
|
-
originX: chunkX * 32,
|
|
87
|
-
originY: chunkY * 32,
|
|
88
|
-
cellSize: map.tileWidth,
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
map.onTileChanged(({ x, y, tile }) => window.setCost(x, y, walkCost(tile)));
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Cost `0` blocks a cell, `1` is ordinary ground, larger values are terrain the search routes
|
|
95
|
-
around when the detour is cheaper. Diagonal steps cost their length, and the default diagonal
|
|
96
|
-
policy (`'no-corner-cutting'`) forbids the diagonal that would clip through the corner where two
|
|
97
|
-
walls meet.
|
|
98
|
-
|
|
99
|
-
`agentSize` restricts a query to cells where an agent that many cells wide fits. Clearance is
|
|
100
|
-
anchored at a cell's **top-left** corner, so the last row and column of a window can never hold
|
|
101
|
-
an agent wider than one cell.
|
|
102
|
-
|
|
103
|
-
## Jump-point search
|
|
104
|
-
|
|
105
|
-
`GridSpace` substitutes jump-point search for plain neighbour expansion whenever the grid is
|
|
106
|
-
uniform-cost, `agentSize` is `1`, and the diagonal policy is the default. It returns the same
|
|
107
|
-
cost-optimal path while expanding a fraction of the nodes; `result.expandedNodes` shows the
|
|
108
|
-
difference. Nothing has to be switched on, and `{ pruning: false }` switches it off.
|
|
109
|
-
|
|
110
|
-
Because pruning settles only jump points, a `budget-exceeded` partial path under pruning ends on
|
|
111
|
-
a jump point rather than on the nearest cell. `snapToNearest` is unaffected: when the goal turns
|
|
112
|
-
out to be unreachable, the query re-runs unpruned so the snapped node really is the closest one.
|
|
113
|
-
|
|
114
|
-
## Waypoint graphs
|
|
115
|
-
|
|
116
|
-
```ts
|
|
117
|
-
import { Pathfinder, WaypointGraph } from '@codexo/exojs-pathfinding';
|
|
118
|
-
|
|
119
|
-
interface Move {
|
|
120
|
-
readonly impulse: number;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const graph = new WaypointGraph<Move>();
|
|
124
|
-
const ledge = graph.addNode(120, 400);
|
|
125
|
-
const platform = graph.addNode(320, 260);
|
|
126
|
-
|
|
127
|
-
graph.connect(ledge, platform, { kind: 'jump', data: { impulse: 520 }, cost: 40 });
|
|
128
|
-
|
|
129
|
-
for (const step of new Pathfinder().findPath(graph, ledge, platform).edges) {
|
|
130
|
-
controller.execute(step.kind, step.data);
|
|
24
|
+
if (route.status === 'found') {
|
|
25
|
+
console.log(route.points);
|
|
131
26
|
}
|
|
132
27
|
```
|
|
133
28
|
|
|
134
|
-
|
|
135
|
-
same search into plain Dijkstra over an abstract graph - the shape a web application's routing
|
|
136
|
-
problem usually has.
|
|
137
|
-
|
|
138
|
-
## Reachable-area queries
|
|
139
|
-
|
|
140
|
-
`floodFrom` returns every node within a cost budget, cheapest first: the "tiles I can still
|
|
141
|
-
reach with the movement points I have left" query, and the input a flow field would be built
|
|
142
|
-
from.
|
|
29
|
+
Zero-cost cells are blocked; positive costs describe traversal weight. `findPathBetween` takes the navigation space followed by the start and goal world coordinates, whereas node-oriented queries use navigation-node identifiers. Handle an unreachable or budget-limited result explicitly instead of moving along an assumed route.
|
|
143
30
|
|
|
144
|
-
|
|
145
|
-
const region = pathfinder.floodFrom(grid, grid.nodeAt(unit.tileX, unit.tileY), { maxCost: 6 });
|
|
146
|
-
|
|
147
|
-
for (const node of region.nodes) {
|
|
148
|
-
highlight(grid.nodeX(node), grid.nodeY(node));
|
|
149
|
-
}
|
|
150
|
-
```
|
|
31
|
+
## Choose the navigation model
|
|
151
32
|
|
|
152
|
-
|
|
33
|
+
A grid is useful when occupancy and costs follow regular cells. A waypoint graph is useful for authored connections, directed travel, or sparse routes. An edge tagged as a ladder or teleport is metadata: the pathfinder does not animate climbing or execute the teleport.
|
|
153
34
|
|
|
154
|
-
|
|
155
|
-
an unmutated space returns the identical path on every machine and every run - which is what
|
|
156
|
-
makes paths safe to record in a replay or assert in a test.
|
|
35
|
+
A path is valid for the navigation revision it was computed from. Update or rebuild the appropriate navigation data when obstacles or costs change, then invalidate stale results and in-flight searches. Repeated deterministic inputs in one controlled environment are useful for testing; do not infer cross-build or cross-machine lockstep guarantees from a fixed traversal order.
|
|
157
36
|
|
|
158
|
-
|
|
159
|
-
different spaces of different sizes. Once the buffers have grown to fit, a search allocates
|
|
160
|
-
nothing that scales with the number of nodes it visits. The result object is allocated fresh
|
|
161
|
-
every time, deliberately: callers keep paths, and pooling something a caller keeps buys a little
|
|
162
|
-
garbage back at the price of use-after-reuse bugs.
|
|
37
|
+
Query budgets bound search work, not a guaranteed number of milliseconds. Keep planning separate from the controller that follows a path, and include the agent's clearance and collision policy in the navigation model rather than treating a line through walkable cells as a complete movement solution.
|
|
163
38
|
|
|
164
|
-
##
|
|
39
|
+
## Documentation
|
|
165
40
|
|
|
166
|
-
|
|
167
|
-
receives the pathfinder's own buffers instead of returning an array, so a third-party space is
|
|
168
|
-
allocation-free on the same terms as the built-in ones.
|
|
41
|
+
[Grid pathfinding](https://exoridus.github.io/ExoJS/en/guide/pathfinding/grid-pathfinding/) · [Waypoint graphs](https://exoridus.github.io/ExoJS/en/guide/pathfinding/waypoint-graphs/) · [Pathfinder API](https://exoridus.github.io/ExoJS/en/api/pathfinder/)
|
|
169
42
|
|
|
170
43
|
## License
|
|
171
44
|
|
|
172
|
-
MIT
|
|
45
|
+
MIT © Codexo
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pathfinder.d.ts","sourceRoot":"","sources":["../../src/Pathfinder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAY,UAAU,EAAmB,MAAM,SAAS,CAAC;AAMlI;;;;;;;;;;;;;GAaG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IAEzC;;;;;;OAMG;IACI,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,UAAU,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Pathfinder.d.ts","sourceRoot":"","sources":["../../src/Pathfinder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAY,UAAU,EAAmB,MAAM,SAAS,CAAC;AAMlI;;;;;;;;;;;;;GAaG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IAEzC;;;;;;OAMG;IACI,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,UAAU,CAAC,OAAO,CAAC,CAwDzI;IAED;;;;;OAKG;IACI,eAAe,CAAC,OAAO,EAC5B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,EAC/B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM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|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexo/exojs-pathfinding",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Deterministic, allocation-free 2D pathfinding for ExoJS: A*, jump-point search, weighted grids and waypoint graphs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"LICENSE"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@codexo/exojs": "0.
|
|
29
|
+
"@codexo/exojs": "0.19.x"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@codexo/exojs": "0.
|
|
33
|
-
"@codexo/exojs
|
|
32
|
+
"@codexo/exojs-config": "0.0.0",
|
|
33
|
+
"@codexo/exojs": "0.19.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsx ../../scripts/build-extension.ts",
|
|
41
41
|
"build:dev": "tsx ../../scripts/build-extension.ts --dev",
|
|
42
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
42
|
+
"typecheck": "exo-tsc --noEmit && exo-tsc --noEmit -p tsconfig.test.json",
|
|
43
43
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
44
44
|
"test": "vitest run --root ../.. --project=exojs-pathfinding"
|
|
45
45
|
}
|