Game of Life #2
IT WORKS!!
Got the actual updating system working. Right now, you can click to toggle a pixel and press spacebar to move forward one generation. Funny side effect: if you hold space, it actually simulates really quickly which looks super cool. Unfortunately, this doesn’t work at higher resolutions, so I’ll have to fix that.
I’ve had a great time playing around with making random stuff and it seems to be a true representation of the Game of Life!
One problem: The way I calculate each of the edges means it doesn’t act like an infinite grid, and if something touches the edge it will act unpredictably. Something for future me to fix!
Next steps:
- Make it resizeable (scroll wheel?)
- Make it not lag
- Fix edge rendering