1var array = [
2 ["0, 0", "1, 0", "2, 0", "3, 0", "4, 0"],
3 ["0, 1", "1, 1", "2, 1", "3, 1", "4, 1"],
4 ["0, 2", "1, 2", "2, 2", "3, 2", "4, 2"],
5 ["0, 3", "1, 3", "2, 3", "3, 3", "4, 3"],
6 ["0, 4", "1, 4", "2, 4", "3, 4", "4, 4"],
7 ]; // Think of it as coordinates, array[x, y] x = 0; y = 0; is "0, 0" on
8 // this grid
9
10console.log(array[3][3]); // returns "3, 3"
11// If you use graphics (ex: p5js or JS Canvas) then this will be a 5x5 map.
12// Useful for roguelikes and/or raycasters.