|
| 1 | +## 23-Make-a-Secret-Message-Sharing-App |
| 2 | + |
| 3 | +**folder 01** |
| 4 | + |
| 5 | +## 1. 02 Project Setup |
| 6 | + |
| 7 | +#### UI documentation |
| 8 | + |
| 9 | +https://brm.io/matter-js/ |
| 10 | +https://brm.io/matter-js/demo |
| 11 | + |
| 12 | +## 2. 04 Getting Content to Appear |
| 13 | + |
| 14 | +## 3. 05 Boilerplate Overview |
| 15 | + |
| 16 | +**world** variable print it in the console browser. |
| 17 | + |
| 18 | +**gravity** it's enable by default, makes the shape stay exactly where it is. |
| 19 | + |
| 20 | +```javascript |
| 21 | +const shape = Bodies.rectangle(200, 200, 50, 50, { |
| 22 | + isStatic: true, |
| 23 | +}) |
| 24 | +World.add(world, shape) |
| 25 | +``` |
| 26 | + |
| 27 | +## 4. 06 Drawing Borders |
| 28 | + |
| 29 | +## 5. 07 Clicking and Dragging |
| 30 | + |
| 31 | +## 6. 08 Generating Random Shapes |
| 32 | + |
| 33 | +## 7. 11 Configuration Variables |
| 34 | + |
| 35 | +**folder 02** |
| 36 | + |
| 37 | +## 8. 12 Grid Generation |
| 38 | + |
| 39 | +```javascript |
| 40 | +// Maze generation |
| 41 | +const grid = [] |
| 42 | + |
| 43 | +for (let i = 0; i < 3; i++) { |
| 44 | + grid.push([]) |
| 45 | + for (let j = 0; j < 3; j++) { |
| 46 | + grid[i].push(false) |
| 47 | + } |
| 48 | +} |
| 49 | +console.log(grid) |
| 50 | +``` |
| 51 | + |
| 52 | +```javascript |
| 53 | +const grid = Array(3).fill(null) |
| 54 | + |
| 55 | +console.log(grid) |
| 56 | +``` |
| 57 | + |
| 58 | +## 9. 13 Verticals and Horizontals |
| 59 | + |
| 60 | +## 10. 14 Abstracting Maze Dimensions |
| 61 | + |
| 62 | +## 11. 15 Guiding Comments |
| 63 | + |
| 64 | +## 12. 16 Neighbor Coordinates |
| 65 | + |
| 66 | +## 13. 17 Shuffling Neighbor Pairs |
| 67 | + |
| 68 | +## 14. 18 Determining Movement Direction |
| 69 | + |
| 70 | +## 15. 19 Updating Vertical Wall Values |
| 71 | + |
| 72 | +## 16. 20 Updating Horizontal Wall Values |
| 73 | + |
| 74 | +## 17. 21 Validating Wall Structure |
| 75 | + |
| 76 | +## 18. 22 Iterating Over Walls |
| 77 | + |
| 78 | +## 19. 23 Drawing Horizontal Segments |
| 79 | + |
| 80 | +## 20. 24 Drawing Vertical Segments |
| 81 | + |
| 82 | +## 21. 25 Drawing the Goal |
| 83 | + |
| 84 | +## 22. 26 Drawing the Playing Ball |
| 85 | + |
| 86 | +## 23. 27 Handling Keypresses |
| 87 | + |
| 88 | +## 24. 28 Adding Keyboard Controls |
| 89 | + |
| 90 | +## 25. 29 Disabling Gravity |
| 91 | + |
| 92 | +## 26. 30 Detecting a Win |
| 93 | + |
| 94 | +## 27. 31 Adding a Win Animation |
| 95 | + |
| 96 | +## 28. 32 Stretching the Canvas |
| 97 | + |
| 98 | +## 29. 33 Understanding the New Unit Variables |
| 99 | + |
| 100 | +## 30. 34 Refactoring for Rectangular Mazes |
| 101 | + |
| 102 | +## 31. 35 Adding Fill Colors |
0 commit comments