Worlds
Whole game worlds from a seed and a few sliders
The problem
A game set outdoors needs a large world before anything else can be built: land and sea, mountains, rivers, climate zones and what lies underground. Hand-making that takes weeks, and generic noise tools give terrain that doesn't hang together.
Game makers inside StellusOS also needed one shared way to describe a world, so the same world could move between the editor and the games that use it.
What I built
- Part of StellusOS: a world is a small recipe (a seed plus settings for land, relief, mountains, hills, warmth, moisture, biome size, rivers, caves, tunnels, ores, trees, rocks and plants), saved as a record.
- The same world-generation engine that the games use draws the map, so what you see in Worlds is what a game gets.
- The map is worked out in a background worker, so the sliders stay responsive while it redraws.
- Three views on one recipe: a coloured map with a legend, a slice that cuts the ground open at any depth to show caves and ores, and a 3D fly-over.
- 'Save to game' writes the recipe and terrain textures into a chosen game. The textures were made on the computer with StellusOS's own image generator under open model licences; nothing was downloaded.
What it does
- A whole continent from one seed number, with lakes, rivers, snow, sand and forest.
- Grouped sliders for land, climate, water and underground, each with its current value.
- A map legend for grass, forest, sand, snow, rock, clay and dirt.
- Works on a phone with the map above and the sliders below.
Built with Vanilla JavaScript (ES modules, no build step), Web Workers, three.js, Shared world-generation engine, socket.io, 2026.