created path finding web worker

This commit is contained in:
Evan
2024-11-28 12:25:34 -08:00
parent 2216c34c41
commit 3e4f4e42cf
24 changed files with 643 additions and 306 deletions
+3
View File
@@ -2,6 +2,7 @@ import { decodePNGFromStream } from 'pureimage'; import path from 'path';
import fs from 'fs/promises';
import { createReadStream } from 'fs';
import { fileURLToPath } from 'url';
import { TerrainTile } from '../core/game/Game';
const __filename = fileURLToPath(import.meta.url);
@@ -21,6 +22,8 @@ export class TerrainMap {
return this.tiles[coord.x][coord.y]
}
width(): number {
return this.tiles.length
}