Skip to content
Snippets Groups Projects
Commit e926584b authored by Jake Dreher's avatar Jake Dreher
Browse files

Increase sizes of board and view

parent b8239737
No related branches found
No related tags found
1 merge request!138 deadplayers
...@@ -303,8 +303,8 @@ module.exports = { ...@@ -303,8 +303,8 @@ module.exports = {
getPlayerView: (gameBoard, pid) => { getPlayerView: (gameBoard, pid) => {
let updatedBoard = gameBoard.map((row) => row.map((cell) => ({ ...cell }))); let updatedBoard = gameBoard.map((row) => row.map((cell) => ({ ...cell })));
let width = 5; let width = 11;
let height = 5; let height = 11;
let head = null; let head = null;
for (var i = 0; i < updatedBoard.length; i++) { for (var i = 0; i < updatedBoard.length; i++) {
......
...@@ -51,7 +51,7 @@ class WebSocketModel { ...@@ -51,7 +51,7 @@ class WebSocketModel {
this.connections = []; this.connections = [];
this.games = {}; this.games = {};
this.games["game1"] = { this.games["game1"] = {
gameBoard: gameModule.createGameBoard(10, 10), gameBoard: gameModule.createGameBoard(100, 100),
players: [], players: [],
type: "public", type: "public",
started: false, started: false,
...@@ -59,7 +59,7 @@ class WebSocketModel { ...@@ -59,7 +59,7 @@ class WebSocketModel {
borderCounter: 0, borderCounter: 0,
}; };
this.games["game2"] = { this.games["game2"] = {
gameBoard: gameModule.createGameBoard(10, 10), gameBoard: gameModule.createGameBoard(100, 100),
players: [], players: [],
type: "public", type: "public",
started: false, started: false,
...@@ -67,7 +67,7 @@ class WebSocketModel { ...@@ -67,7 +67,7 @@ class WebSocketModel {
borderCounter: 0, borderCounter: 0,
}; };
this.games["game3"] = { this.games["game3"] = {
gameBoard: gameModule.createGameBoard(10, 10), gameBoard: gameModule.createGameBoard(100, 100),
players: [], players: [],
type: "public", type: "public",
started: false, started: false,
...@@ -97,7 +97,7 @@ class WebSocketModel { ...@@ -97,7 +97,7 @@ class WebSocketModel {
createGame(gameId, gameType) { createGame(gameId, gameType) {
this.games[gameId] = { this.games[gameId] = {
gameBoard: gameModule.createGameBoard(10, 10), gameBoard: gameModule.createGameBoard(100, 100),
players: [], players: [],
type: gameType, type: gameType,
started: false, started: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment