SaltPeter is a pixel simulation game built on Nitrate — a custom WebGPU engine where every cell in the world is simulated in parallel on the GPU. Materials flow, react, burn, freeze, and dissolve with no shortcuts.
Inspired by the cellular automata of Noita and the open simulation philosophy of Cortex Command.
One of the main goals in this project is to obtain a better understanding of game-engine subsystems and the processes that provide us as gamers with reliable behaviors during gameplay.
| Concept | Source | Formula |
|---|---|---|
| Cellular Automata | John Von Neumann | |
| Chebyshev Distance | Pafnuty Chebyshev | |
| Lennard-Jones Potential | John Edward Lennard-Jones | |
| Graham Scan | Ronald Graham | |
| Perlin Noise | Ken Perlin | |
| Worley Noise | Steven Worley | |
| Ridged Multifractal Noise | Ken Musgrave | |
| Dot Product | Josiah Willard Gibbs | |
| Coulomb Friction | Charles-Augustin de Coulomb | |
| Baumgarte Stabilization | Joachim Baumgarte | |
| Bresenham's Circle | Jack Elton Bresenham | |
| Thermal conduction | Joseph Fourier | |
| Euler's Identity | Leonhard Euler | |
| Herringbone Wang Tiles | Sean Barrett |
Guides are available for the proprietary systems such as the Editor.
Nitrate is the simulation engine powering this project — released separately under CC0, fully public domain.
| Scope | License |
|---|---|
Engine (src/engine/) |
CC0 1.0 Universal — public domain |
Game (src/game/) |
All Rights Reserved |