Skip to content

Commit

Permalink
update sample to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Feb 20, 2024
1 parent 9f752b3 commit bdaddf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Erik Onarheim",
"license": "BSD-2-Clause",
"dependencies": {
"excalibur": "0.30.0-alpha.942",
"excalibur": "0.29.0",
"lit": "3.1.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/path-finding/path-finding-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { PathNodeComponent } from "./path-node-component";


export class PathFinder {
query: ex.Query<PathNodeComponent>;
query: ex.Query<typeof PathNodeComponent>;

constructor(scene: ex.Scene) {
this.query = scene.world.queryManager.createQuery([PathNodeComponent.type]);
this.query = scene.world.queryManager.createQuery([PathNodeComponent]);
}

heuristicWeight = 1;
Expand Down

0 comments on commit bdaddf4

Please sign in to comment.