@codexo/exojs-pathfinding 0.18.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,136 +1,45 @@
|
|
|
1
1
|
# @codexo/exojs-pathfinding
|
|
2
2
|
|
|
3
|
-
|
|
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.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
5
|
+
## Install
|
|
8
6
|
|
|
9
7
|
```sh
|
|
10
|
-
npm install @codexo/exojs @codexo/exojs-pathfinding
|
|
8
|
+
npm install --save-exact @codexo/exojs @codexo/exojs-pathfinding
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## What this package provides
|
|
16
|
-
|
|
17
|
-
- `Pathfinder` - runs the queries and owns the reusable search buffers.
|
|
18
|
-
- `GridSpace` - a finite window of weighted cells, with diagonal policies, per-cell costs, clearance for wide agents, string-pulling path smoothing, and a jump-point fast path.
|
|
19
|
-
- `WaypointGraph` - a directed graph of hand-placed nodes whose edges carry a `kind` and a payload, so a path can tell a jump from a walk.
|
|
20
|
-
- `NavigationSpace` - the interface both implement, and the one your own space implements when neither fits.
|
|
21
|
-
|
|
22
|
-
## Capability matrix
|
|
23
|
-
|
|
24
|
-
| Capability | `GridSpace` | `WaypointGraph` |
|
|
25
|
-
| ----------------------------------- | ------------------------------------------- | -------------------------------- |
|
|
26
|
-
| Per-step costs | per cell, `0` blocks | per edge |
|
|
27
|
-
| Heuristic | octile / Manhattan, scaled by cheapest cell | straight-line distance |
|
|
28
|
-
| Directed traversal | no - movement is symmetric | yes |
|
|
29
|
-
| Traversal kinds (`walk`/`jump`/...) | no | yes, with an arbitrary payload |
|
|
30
|
-
| Positionless (pure Dijkstra) | no | yes, when a node has no position |
|
|
31
|
-
| Clearance / wide agents | yes, `agentSize` | no |
|
|
32
|
-
| Path smoothing | yes, string pulling | no |
|
|
33
|
-
| Jump-point pruning | yes, on a uniform-cost grid | no |
|
|
34
|
-
| Mutable at runtime | `setCost` | `addNode`/`addEdge`/`remove*` |
|
|
11
|
+
This is a directly used library. It has no application extension descriptor or global registration step.
|
|
35
12
|
|
|
36
|
-
##
|
|
13
|
+
## Find a route on a grid
|
|
37
14
|
|
|
38
15
|
```ts
|
|
39
16
|
import { GridSpace, Pathfinder } from '@codexo/exojs-pathfinding';
|
|
40
17
|
|
|
41
|
-
const grid = GridSpace.from(
|
|
18
|
+
const grid = GridSpace.from(12, 8, (x, y) => (x === 5 && y !== 4 ? 0 : 1), {
|
|
42
19
|
cellSize: 32,
|
|
43
20
|
});
|
|
44
21
|
const pathfinder = new Pathfinder();
|
|
22
|
+
const route = pathfinder.findPathBetween(grid, 16, 16, 336, 208);
|
|
45
23
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
if (result.status === 'found') {
|
|
51
|
-
hero.follow(result.points);
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
`findPath` takes node ids, `findPathBetween` takes world coordinates. Both return the same `PathResult`, and `status` is a value rather than an exception, because "no path" is an ordinary game state:
|
|
56
|
-
|
|
57
|
-
| `status` | Meaning |
|
|
58
|
-
| ----------------- | -------------------------------------------------------------------- |
|
|
59
|
-
| `found` | Complete, cost-optimal path. |
|
|
60
|
-
| `unreachable` | The search exhausted the space. Empty path, unless `snapToNearest`. |
|
|
61
|
-
| `budget-exceeded` | `maxExpandedNodes` ran out. The best partial path is still returned. |
|
|
62
|
-
|
|
63
|
-
`result.revision` records `space.revision` at search time, so a follower can notice that the world changed under its path and ask for a new one.
|
|
64
|
-
|
|
65
|
-
## Grids
|
|
66
|
-
|
|
67
|
-
Coordinates are absolute cell coordinates - the same numbers your map uses - not offsets into the window. The window itself is finite by construction, and everything outside it is blocked; that is the answer for infinite or streamed maps: size the window to the region the actors are in, and push chunk changes into it with `setCost`.
|
|
68
|
-
|
|
69
|
-
```ts
|
|
70
|
-
// Streamed tilemap, no package dependency in either direction.
|
|
71
|
-
const window = GridSpace.from(96, 96, (x, y) => walkCost(map.getTileAt(layerId, x, y)), {
|
|
72
|
-
originX: chunkX * 32,
|
|
73
|
-
originY: chunkY * 32,
|
|
74
|
-
cellSize: map.tileWidth,
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
map.onTileChanged(({ x, y, tile }) => window.setCost(x, y, walkCost(tile)));
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Cost `0` blocks a cell, `1` is ordinary ground, larger values are terrain the search routes around when the detour is cheaper. Diagonal steps cost their length, and the default diagonal policy (`'no-corner-cutting'`) forbids the diagonal that would clip through the corner where two walls meet.
|
|
81
|
-
|
|
82
|
-
`agentSize` restricts a query to cells where an agent that many cells wide fits. Clearance is anchored at a cell's **top-left** corner, so the last row and column of a window can never hold an agent wider than one cell.
|
|
83
|
-
|
|
84
|
-
## Jump-point search
|
|
85
|
-
|
|
86
|
-
`GridSpace` substitutes jump-point search for plain neighbour expansion whenever the grid is uniform-cost, `agentSize` is `1`, and the diagonal policy is the default. It returns the same cost-optimal path while expanding a fraction of the nodes; `result.expandedNodes` shows the difference. Nothing has to be switched on, and `{ pruning: false }` switches it off.
|
|
87
|
-
|
|
88
|
-
Because pruning settles only jump points, a `budget-exceeded` partial path under pruning ends on a jump point rather than on the nearest cell. `snapToNearest` is unaffected: when the goal turns out to be unreachable, the query re-runs unpruned so the snapped node really is the closest one.
|
|
89
|
-
|
|
90
|
-
## Waypoint graphs
|
|
91
|
-
|
|
92
|
-
```ts
|
|
93
|
-
import { Pathfinder, WaypointGraph } from '@codexo/exojs-pathfinding';
|
|
94
|
-
|
|
95
|
-
interface Move {
|
|
96
|
-
readonly impulse: number;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const graph = new WaypointGraph<Move>();
|
|
100
|
-
const ledge = graph.addNode(120, 400);
|
|
101
|
-
const platform = graph.addNode(320, 260);
|
|
102
|
-
|
|
103
|
-
graph.connect(ledge, platform, { kind: 'jump', data: { impulse: 520 }, cost: 40 });
|
|
104
|
-
|
|
105
|
-
for (const step of new Pathfinder().findPath(graph, ledge, platform).edges) {
|
|
106
|
-
controller.execute(step.kind, step.data);
|
|
24
|
+
if (route.status === 'found') {
|
|
25
|
+
console.log(route.points);
|
|
107
26
|
}
|
|
108
27
|
```
|
|
109
28
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
## Reachable-area queries
|
|
113
|
-
|
|
114
|
-
`floodFrom` returns every node within a cost budget, cheapest first: the "tiles I can still reach with the movement points I have left" query, and the input a flow field would be built 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.
|
|
115
30
|
|
|
116
|
-
|
|
117
|
-
const region = pathfinder.floodFrom(grid, grid.nodeAt(unit.tileX, unit.tileY), { maxCost: 6 });
|
|
118
|
-
|
|
119
|
-
for (const node of region.nodes) {
|
|
120
|
-
highlight(grid.nodeX(node), grid.nodeY(node));
|
|
121
|
-
}
|
|
122
|
-
```
|
|
31
|
+
## Choose the navigation model
|
|
123
32
|
|
|
124
|
-
|
|
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.
|
|
125
34
|
|
|
126
|
-
|
|
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.
|
|
127
36
|
|
|
128
|
-
|
|
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.
|
|
129
38
|
|
|
130
|
-
##
|
|
39
|
+
## Documentation
|
|
131
40
|
|
|
132
|
-
|
|
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/)
|
|
133
42
|
|
|
134
43
|
## License
|
|
135
44
|
|
|
136
|
-
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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;;OAGG;IACI,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAkB/C;IAEM,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;IAEM,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAYtE;IAED,OAAO,CAAC,MAAM;CAKf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
}
|