From b10559bd96f076a63e80cea08f464e0dc18a4a75 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 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'));