From 612a1e310f159040953aac30262fc73de1ba4129 Mon Sep 17 00:00:00 2001 From: onezDerv Date: Sun, 29 Sep 2024 04:09:50 -0400 Subject: [PATCH] this is still acting up idk why --- common/player.js | 2 +- index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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'));