Overview
What it is
Game of Life is a desktop playground for experimenting with cellular automata. The current simulation runs a SmoothLife-style rule on a grid; a Conway rule is also present in the codebase. You can paint or erase cells, randomize or clear the grid, pause the simulation, and pan or zoom around the canvas.
Approach
How I built it
C++ updates the grid and raylib draws it in a desktop window. Raygui provides the controls, while a camera lets the viewer move around and zoom into patterns.
- 1
Build the grid
Store cell state and colour in a grid, then update and draw the cells each frame.
- 2
Explore rules
Implement both Conway and SmoothLife-style rules, with the SmoothLife-style rule active in the current build.
- 3
Make it interactive
Add paint, erase, randomize, clear, play/pause, pan, and zoom controls for experimenting with patterns.
GUI
raygui
Canvas
raylib
Rule
C++
Tech
What I used
- raylib
- raygui
- C++
- Git
Gallery

