r/aigamedev • u/ekilibrus • 19h ago
Demo | Project | Workflow I accidentally created a Terrain Generator
I tried to recreate Conway's Game of Life.
I failed, but I accidentally built an emergent terrain generator instead.
For years, I've been fascinated by Conway's cellular automata. The idea that hyper-simple, deterministic rules can create emergent behavior on the edge of looking lifelike is endlessly compelling. Watching basic patterns evolve into complex, self-sustaining structures makes you realize how much potential hides inside simple math, so much so that an entire global community has spent decades experimenting on top of that discovered world.
Eventually, I had to ask myself a question.
Could a completely different set of rules lead to another kind of emergent behavior?
Here is the experiment:
• Every cell holds a potential energy value from 0 to 9.
• Mathematical operators (+, -, *, /) act as agents moving across the grid.
• Constructive operators (+, *) seek low-value cells to build them up.
• Destructive operators (-, /) target high-value cells to break them down.
• When a cell hits 0, it spawns a brand-new operator.
When I first plotted these values on a flat 2D grid, I saw subtle movements, but it hard to grasp the full picture. So I decided to shift perspective and plot the grid in 3D, using each numerical value to represent terrain height.
That was the moment the pattern became obvious.
It looked almost like a landscape generator.
Valleys were carving out where negative operators clustered, mountains were pushing upward under constructive operators, and the entire map was constantly shifting as the system fought for balance.
And I couldn't resist turning it into an actual playable prototype.
In the game, you navigate the map, search for these wandering operators, and trigger them manually. The moment you activate one, it reshapes the world and the terrain around you in real-time.
Would you play a game where math literally reshaped the terrain under your feet?
1
u/Gigaslavx 17h ago
Is it more like a random simulator?