Game of Life... in 3-D!

🔗 Code Example: Game of Life 3D

🔗 Related videos:

🔗 References:

🔗 Timestamps:

  • 0:16 Conway's Game of Life Recap

  • 2:10 Draw shapes in WEBGL Mode

  • 6:13 Center cube in the middle of canvas

  • 8:26 Create a 3D array grid to store cells' states

  • 11:25 Create a function to sum up neighboring cells' states

  • 14:10 Create a 3D array nextGen to store new generations of states

  • 19:30 Use Modulo % to wrap around index values

  • 24:02 Experiment with cells' initial states

  • 26:11 Final aesthetics touches

Previous

Hilbert Curve (Recursion)

Next

Recursive Pattern (Recursion)