expanding map
This commit is contained in:
parent
4602947942
commit
e584361465
5 changed files with 27 additions and 10 deletions
2
index.js
2
index.js
|
@ -17,7 +17,7 @@ app.use(express.static('./static'));
|
|||
|
||||
app.ws('/', function (ws, req) {
|
||||
game.ws.push(ws);
|
||||
let player = new Player();
|
||||
let player = new Player(false, true, game);
|
||||
let playerI = game.entities.length;
|
||||
game.entities[playerI] = player;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue