1
|
|
|
|
Introduction and references
|
|
|
43 listeners
|
2
|
|
|
|
The rules for a sand simulation
|
|
|
30 listeners
|
3
|
|
|
|
Code! Creating a grid
|
|
|
29 listeners
|
4
|
|
|
|
Animating a falling grain of sand
|
|
|
28 listeners
|
5
|
|
|
|
Handling left and right edges
|
|
|
26 listeners
|
6
|
|
|
|
Let's account for the bottom edge
|
|
|
26 listeners
|
7
|
|
|
|
More sophisticated sand behavior
|
|
|
25 listeners
|
8
|
|
|
|
Adding randomness
|
|
|
24 listeners
|
9
|
|
|
|
About cellular automata
|
|
|
24 listeners
|
10
|
|
|
|
More space and more sand
|
|
|
23 listeners
|
11
|
|
|
|
Adding some color!
|
|
|
23 listeners
|
12
|
|
|
|
Adding mouse interaction
|
|
|
21 listeners
|
13
|
|
|
|
Oops! Some errors to fix
|
|
|
21 listeners
|
14
|
|
|
|
About matrix columns and rows
|
|
|
21 listeners
|
15
|
|
|
|
Checking if mouse is within the canvas
|
|
|
21 listeners
|
16
|
|
|
|
Challenge complete! Let's do some refactoring
|
|
|
20 listeners
|
17
|
|
|
|
How could we add gravity?
|
|
|
20 listeners
|
18
|
|
|
|
Wrapping up
|
|
|
11 listeners
|
19
|
|
|
|
Falling Sand
|
|
|
8 listeners
|