When you change the default tray size (1000x800) to something smaller, like 800x800, the maze walls extend over the edge of the box.
Probably need to calculate number of wall rows based on trayWidth/trayHeight and pathWidthV/pathWidthV and then use that number instead of layout.wallEdgesV.length/layout.wallEdgesH.length in createWalls() ...
But there may be wider implications ...
Anyway, the idea is that you can make the layout (e.g. in DefaultMaze.pde) large enough for the largest window, and just use less of it if the tray is set to a smaller size / different ratio.
When you change the default tray size (1000x800) to something smaller, like 800x800, the maze walls extend over the edge of the box.
Probably need to calculate number of wall rows based on
trayWidth/trayHeightandpathWidthV/pathWidthVand then use that number instead oflayout.wallEdgesV.length/layout.wallEdgesH.lengthincreateWalls()...But there may be wider implications ...
Anyway, the idea is that you can make the layout (e.g. in
DefaultMaze.pde) large enough for the largest window, and just use less of it if the tray is set to a smaller size / different ratio.