this is still acting up idk why
This commit is contained in:
parent
0a1be30d40
commit
b10559bd96
2 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
import crypto from "./crypto.js";
|
import crypto from "../crypto.js";
|
||||||
|
|
||||||
function distF(ent, target) {
|
function distF(ent, target) {
|
||||||
return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2)
|
return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2)
|
||||||
|
|
1
index.js
1
index.js
|
@ -10,6 +10,7 @@ var game = new Game();
|
||||||
|
|
||||||
game.init();
|
game.init();
|
||||||
|
|
||||||
|
app.use('/crypto.js', express.static('./common/crypto.js'));
|
||||||
app.use('/js', express.static('./common'));
|
app.use('/js', express.static('./common'));
|
||||||
app.use(express.static('./static'));
|
app.use(express.static('./static'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue