Skip to content

Commit 01ca2d4

Browse files
committed
Optimize configs for Handsome breakfast session
1 parent 69b86f2 commit 01ca2d4

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

app/config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ define([], function() {
22
return {
33
// render settings
44
deadCellColor: '#ffffff',
5-
cellSize: 9,
6-
cellSpacing: 1,
5+
cellSize: 18,
6+
cellSpacing: 2,
77

88
// grid settings
9-
gridWidth: 100,
10-
gridHeight: 50,
9+
gridWidth: 60,
10+
gridHeight: 30,
1111

1212
// game settings
13-
generationDuration: 2000,
13+
generationDuration: 1000,
1414
giveCellsEvery: 1, // generations
1515

1616
// player settings
@@ -19,11 +19,11 @@ define([], function() {
1919
lastSeenTimeout: 180000,
2020

2121
// server settings
22-
timeBetweenStateUpdates: 10000,
22+
timeBetweenStateUpdates: 5000,
2323
secretToken: "secret witch's brew",
2424
lowestHighScore: 200,
2525
chatLogLength: 175,
2626
chatMessageLength: 140,
27-
timeBetweenLatencyTests: 10000
27+
timeBetweenLatencyTests: 5000
2828
};
2929
});

public/css/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ html, body {
146146
}
147147

148148
.container {
149-
width: 1001px;
150149
margin: 0 auto;
151150
}
152151

public/js/config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ define([], function() {
33
// render settings
44
deadCellColor: '#ffffff',
55
defaultAccentColor: '#000000',
6-
cellSize: 9,
7-
cellSpacing: 1,
6+
cellSize: 18,
7+
cellSpacing: 2,
88
tickBarHeight: 5,
99

1010
// grid settings
11-
gridWidth: 100,
12-
gridHeight: 50,
11+
gridWidth: 60,
12+
gridHeight: 30,
1313

1414
// game settings
15-
generationDuration: 5000,
16-
giveCellsEvery: 6, // generations
17-
timeBetweenUpdates: 10000,
15+
generationDuration: 1000,
16+
giveCellsEvery: 1, // generations
17+
timeBetweenUpdates: 5000,
1818

1919
// player settings
20-
cellsPerPlayer: 12,
20+
cellsPerPlayer: 1000,
2121
lastSeenTimeout: 180000,
2222

2323
// chat settings

0 commit comments

Comments
 (0)