← All projects

Desktop · 2026

Work in progress

Game of Life

An interactive cellular automata playground built with C++, raylib, and raygui.

Team
Just me
Game of Life, image 1 of 2
1 / 2

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. 1

    Build the grid

    Store cell state and colour in a grid, then update and draw the cells each frame.

  2. 2

    Explore rules

    Implement both Conway and SmoothLife-style rules, with the SmoothLife-style rule active in the current build.

  3. 3

    Make it interactive

    Add paint, erase, randomize, clear, play/pause, pan, and zoom controls for experimenting with patterns.

  1. GUI

    raygui

  2. Canvas

    raylib

  3. Rule

    C++

Tech

What I used

  • raylib
  • raygui
  • C++
  • Git

Next project

Albion Toolbox →