Skip to content

Commit ab7ff08

Browse files
committed
Section 22: Grid Generation
1 parent cf89944 commit ab7ff08

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

22-Javascript-with-the-Canvas-API/02-Maze copy/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,16 @@ const walls = [
2828
]
2929

3030
World.add(world, walls)
31+
32+
// Maze generation
33+
34+
const grid = []
35+
36+
for(let i = 0; i < 3; i++) {
37+
grid.push([])
38+
for(let j = 0; j < 3; j++) {
39+
grid[i].push(false)
40+
}
41+
}
42+
43+
console.log(grid);

22-Javascript-with-the-Canvas-API/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ World.add(world, shape)
3232

3333
## 7. 11 Configuration Variables
3434

35-
**folder 02**
35+
**folder 02**
36+
37+
## 8. 12 Grid Generation

0 commit comments

Comments
 (0)