Skip to content

Game of Life

Loading…

Conway’s Life with every live cell an entity: each generation queues thousands of births and deaths and one flush applies them together — the deferred command buffer as the double buffer, neighbours counted through the spatial index, fading ghosts on lifetimes, and age colours recomputed only for changed cells.

Controls: LMB paint · RMB erase · Space pause · N step · +/− speed · T rule · G trails · R random · C clear · 1–6 presets · WASD pan · wheel/Q E zoom · K save · L load

Source: examples/game-of-life

Exercises: camera, easing, grid-based, input, lifetime, math, render-canvas2d, rng, save, spatial, tick, timer, transform.