Wispward

How a 120-Level Campaign Can Come From Seeds: Procedural Generation Explained

What a seed is, why games use them, and how a campaign like Wispward's can offer 120 levels that are identical on every Mac without storing each map.

A seed is a short number that a game feeds into a random-number generator so that the same number always produces the same result. With a seed, a game can create a level, a map or a whole world on demand without storing it, and every player who uses the same seed gets the same thing. That is how a campaign of 120 levels can exist without 120 hand-drawn maps.

What the term means

Wikipedia's procedural generation article defines seeds as short values, usually a number or text string, that a pseudorandom number generator uses to build a game world. The same seed with the same algorithm reproduces the same world, so a game can regenerate a large map without storing it. One sentence in the article carries the main caution: the map seed only has meaning in the context of the algorithm used to generate the map.

Two consequences follow. First, a seed is repeatable: you can return to an unmodified map or share it by specifying only the seed. Second, a seed is fragile: if the algorithm changes, the same seed produces a different map. The article gives a Minecraft example, where each map's seed is a 64-bit integer, allowing about 18 quintillion possible maps, and where an update that changed the generator left visible seams between old and new parts of the same world.

Why developers like seeds

Storage. The article cites The Sentinel, which stored about 10,000 levels in 48 to 64 kilobytes. For a modern Mac game a few hundred megabytes of assets matter more than level data, but the principle holds.

Consistency. A fixed seed gives each player the same level, which means you can compare notes, share tips and use the same walkthrough as a friend. Fully random levels would break that.

Reach without hand-crafting. A small team can ship a big campaign if the structure of levels can be generated from rules. The designer's time then goes into the rules and the balance rather than into drawing every road.

Speedrunning and challenge. Wikipedia notes that seeds became useful for speedrunning, since players can enter a favorable seed manually.

Seeded is not the same as random

The word "procedural" sometimes suggests every run is different. That is the roguelike model: Wikipedia describes procedural generation in roguelites as creating levels, layouts and encounters from a set of rules so that no two runs are the same, mixed with fixed structure such as a set number of biomes ending in boss fights.

A seeded campaign is the other branch. The generation is procedural, but the seed is tied to something stable such as the level number, so level 47 is the same level every time. You get the economy of procedural generation and the shareability of a hand-built campaign.

How this applies to Wispward

Wispward's App Store listing advertises a 120-level campaign with a boss every tenth level. In the game's code, levels one to three were drawn by hand, and later levels are generated by a routine whose random numbers are seeded from the level number, so the layout is deterministic: the same level number gives the same road, on every Mac. Wave contents are drawn from a separate level-specific seed, so changing how waves are rolled does not shift the maps.

That separation of seeds is a quiet but important piece of engineering. If the road and the waves shared one random stream, a small balance tweak to waves would reshuffle every road after it. By isolating them, the developer can rebalance waves without changing anything you have learned about a level's layout.

What it means for you:

  • A level you struggled with yesterday is the same level today. Your notes about where the good spots are remain valid.
  • Two players can discuss "level 62" and mean the same road.
  • After a prestige reset, the early levels come back unchanged, which makes replay predictable. See prestige systems explained.
  • An update that changes the generation code could in principle change a level's road, for the reason given above. If you rely on a layout, check after major updates.

What generation can and cannot do

Generated levels usually have good structure but less personality than handmade ones. A designer can place a surprise on a handmade map; a generator can only follow its rules. Good generators compensate with constraints. In Wispward's code, for example, roads must be long enough relative to the map and bend a minimum number of times, so levels do not end up with a short, straight road. Good designers also hand-craft the moments that matter most, such as the opening levels, where a new player learns the game, and boss levels, where the difficulty has to be right.

If you are comparing tower defense games, the question to ask is not "is it procedural" but "does it feel authored where it matters." For a view of how fixed roads and level shapes affect play, read mazing versus fixed paths.

A short test you can run yourself

You can check whether a game's levels are seeded in a few minutes. Play a level, note where the road enters, where it bends and where the base is. Quit, relaunch and open the same level again. If the road is identical, the level is either handmade or seeded. Then open a level far ahead in the list and compare it with its neighbors: seeded levels often share a family resemblance, such as the same kinds of bends, while still differing in layout.

For a game with a hundred or more levels, that resemblance is not a flaw. It is what lets one developer deliver a long campaign, and the variety comes from the other parts of the design, the mix of spirits in each wave and the choices you make about towers, traps and workers. Those are covered in how workers and traps work in Wispward.

Wispward

120 levels, 24 spirit types and 21 voiced story videos. The cloaked spirits on your road are not attacking. They are fleeing.

Download on the App Store

Frequently asked questions

What is a seed in a video game?

A short value, usually a number or text string, that a pseudorandom number generator uses to build a world. The same seed with the same algorithm reproduces the same world.

Why would a game change its levels after an update?

Because a seed only has meaning together with its algorithm. If the generation code changes, the same seed produces a different result.

Sources

  1. Procedural generation - Wikipedia — Wikipedia
  2. Roguelike - Wikipedia — Wikipedia
  3. Wispward on the Mac App Store — Apple

More articles