Skip to content

Maze walls are rendered beyond the tray size on smaller trays #13

@apman

Description

@apman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions