Hi.
My unexperience with JS shines here like a lightbulb :D
I am working with a raycaster and the "map" is in a array of arrays. I think you call it as jagged arrays.
So the basic map data looks like this.
let map = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]...