File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ export class MazeShapeManager extends ShapeManager {
3939}
4040
4141const 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
5050export 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 ( ) ;
You can’t perform that action at this time.
0 commit comments