log map, smaller maze

This commit is contained in:
2023-06-06 17:10:19 +02:00
parent d48500919a
commit 2075429566
2 changed files with 12 additions and 4 deletions

View File

@@ -59,4 +59,10 @@ export default class MazeMesh extends THREE.InstancedMesh {
return -1
}
}
toString() {
return this.map.map(row =>
row.map(isWall => isWall? "██":"░░").join("")
).join("\n")
}
}