Skip to content
This repository was archived by the owner on Feb 28, 2019. It is now read-only.

Commit 1ef9a52

Browse files
author
MuRye
committed
So many changes. Structure changed
1 parent b4aa16a commit 1ef9a52

File tree

23 files changed

+1995
-27
lines changed

23 files changed

+1995
-27
lines changed
File renamed without changes.
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
"type": "git",
1414
"url": "git+https://github.com/D01T/Avoido.git"
1515
},
16-
"keywords": [
17-
"online",
18-
"web-game"
19-
],
16+
"keywords": ["online", "web-game"],
2017
"contributors": [
2118
{
2219
"name": "Astro36",
@@ -31,6 +28,11 @@
3128
{
3229
"name": "Scripter36",
3330
"email": "[email protected]"
31+
},
32+
{
33+
"name": "a1p4ca",
34+
"email": "[email protected]",
35+
"url": "https://murye.io"
3436
}
3537
],
3638
"license": "MIT",
@@ -40,7 +42,11 @@
4042
"homepage": "https://github.com/D01T/Avoido#readme",
4143
"dependencies": {
4244
"koa": "^2.3.0",
45+
"koa-chalk-logger": "^1.0.0",
46+
"koa-conditional-get": "^2.0.0",
47+
"koa-etag": "^3.0.0",
4348
"koa-pug": "^3.0.0-2",
49+
"koa-static": "^4.0.1",
4450
"socket.io": "^2.0.3"
4551
},
4652
"devDependencies": {

server/src/main.js

Lines changed: 0 additions & 20 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

server/src/game/controller/PlayerCellController.js renamed to src/game/controller/PlayerCellController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class PlayerCellController extends EntityController {
99
const playerCellVector = Vector.arrayTo(vectorArray);
1010
const otherCells = playerCell.getStage().getCellController().getAll();
1111
playerCell.moveAt(playerCellVector);
12-
otherCells.forEach((cell) => {
12+
otherCells.some((cell) => {
1313
if (playerCellVector.eqauls(cell.getVector())) {
1414
this.remove(name);
1515
console.log('You Die!');
16-
break;
16+
return true;
1717
}
1818
});
1919
});

0 commit comments

Comments
 (0)