Skip to content

Commit c734d04

Browse files
Style
1 parent b395e50 commit c734d04

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Gamemodes/Maze.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ export class MazeShapeManager extends ShapeManager {
3939
}
4040

4141
const config: MazeGeneratorConfig = {
42-
CELL_SIZE: 635,
43-
GRID_SIZE: 40,
44-
SEED_AMOUNT: Math.floor(Math.random() * 30) + 30,
45-
TURN_CHANCE: 0.2,
46-
BRANCH_CHANCE: 0.2,
47-
TERMINATION_CHANCE: 0.2
42+
cellSize: 635,
43+
gridSize: 40,
44+
seedAmount: Math.floor(Math.random() * 30) + 30,
45+
turnChance: 0.2,
46+
branchChance: 0.2,
47+
terminationChance: 0.2
4848
}
4949

5050
export default class MazeArena extends ArenaEntity {
@@ -57,7 +57,7 @@ export default class MazeArena extends ArenaEntity {
5757
public constructor(game: GameServer) {
5858
super(game);
5959

60-
const arenaSize = config.CELL_SIZE * config.GRID_SIZE
60+
const arenaSize = config.cellSize * config.gridSize;
6161
this.updateBounds(arenaSize, arenaSize);
6262

6363
this.mazeGenerator.buildMaze();

0 commit comments

Comments
 (0)