diff --git a/common/player.js b/common/player.js index 072aa45..1a2ee22 100644 --- a/common/player.js +++ b/common/player.js @@ -1,4 +1,4 @@ -import crypto from "./crypto.js"; +import crypto from "../crypto.js"; function distF(ent, target) { return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2) diff --git a/index.js b/index.js index b2e4546..024c2d5 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,7 @@ var game = new Game(); game.init(); +app.use('/crypto.js', express.static('./common/crypto.js')); app.use('/js', express.static('./common')); app.use(express.static('./static'));