TExcelTAD

Difficulty Curves

A game that is too easy is boring; one that is too hard is frustrating. Between them lies what psychologists call flow: the challenge rises just as fast as the player's skill. A difficulty curve is how challenge changes over the course of a game, and designing it is mostly about pacing: when to push, when to give the player a break, and when to introduce something new.

The flow channel

text
challenge
   ▲          anxiety
   │         (too hard)     ╱
   │                     ╱  ← flow channel: challenge
   │                  ╱       grows with skill
   │               ╱
   │            ╱     boredom
   │         ╱      (too easy)
   └──────────────────────────► skill (time played)

Players get better as they play, so a flat difficulty becomes boring and a steep one leaves them behind. The goal is to stay inside the channel.

Sawtooth, not a straight line

A straight ramp is tiring. Most well-paced games use a sawtooth: difficulty rises within a level or world, peaks at a boss or a hard section, then drops at the start of the next one while the overall trend goes up. The drop gives a moment of relief and lets the player enjoy their new skill before the next climb.

js · try it yourself
const worlds = 3, levelsPerWorld = 4;
for (let w = 0; w < worlds; w++) {
  for (let l = 0; l < levelsPerWorld; l++) {
    const base = 2 + w * 2;                     // each world starts higher than the last
    const challenge = base + l * 1.5;           // and rises within the world
    const label = `W${w + 1}-${l + 1}${l === levelsPerWorld - 1 ? " boss" : ""}`;
    console.log(`${label.padEnd(9)} ${"#".repeat(Math.round(challenge))} ${challenge}`);
  }
}
W1-1      ## 2
W1-2      #### 3.5
W1-3      ##### 5
W1-4 boss ####### 6.5
W2-1      #### 4
W2-2      ###### 5.5
W2-3      ####### 7
W2-4 boss ######### 8.5
W3-1      ###### 6
W3-2      ######## 7.5
W3-3      ######### 9
W3-4 boss ########### 10.5

Each world's first level is easier than the previous boss, but harder than the previous world's first level.

Teach, test, twist

New mechanics need their own mini-curve. A widely used pattern for introducing something new:

  1. Teach it safely: the first spike pit has a floor under it; the first enemy that throws bombs stands alone on a platform.
  2. Test it: the same idea with a real consequence.
  3. Twist it: combine it with something the player already knows (spikes and a moving platform).

Players learn best by doing; a level designed this way needs almost no tutorial text.

Numbers that grow

Many games scale enemy stats per level. The shape of that formula matters: linear growth feels gentle, exponential growth eventually outruns any player upgrade path. Compare them before choosing:

js · try it yourself
const linear = (level) => 50 + 10 * level;
const exponential = (level) => Math.round(50 * 1.15 ** level);

console.log("level  linear  exponential");
for (const level of [1, 5, 10, 20, 30]) {
  console.log(`${String(level).padStart(5)}  ${String(linear(level)).padStart(6)}  ${String(exponential(level)).padStart(11)}`);
}
level  linear  exponential
    1      60           57
    5     100          101
   10     150          202
   20     250          818
   30     350         3311

Up to level 5 the two formulas are nearly identical; by level 30 the exponential one is almost ten times higher. If player damage grows linearly, an exponential health curve means fights get longer and longer, which is a design decision you should make on purpose.

Dynamic difficulty adjustment

Some games adjust difficulty while you play. Left 4 Dead's "AI Director" changes enemy pressure based on how the team is doing; Resident Evil 4 adjusts enemy behavior based on player performance without telling the player. A simple, transparent version: track recent results and nudge a difficulty multiplier, within limits.

csharp · try it yourself
using System;

double difficulty = 1.0;                    // multiplies enemy damage and spawn rate
string[] results = { "win", "win", "win", "death", "death", "death", "win", "death", "win", "win" };
int streak = 0;

foreach (string result in results)
{
    streak = result == "win" ? Math.Max(1, streak + 1) : Math.Min(-1, streak - 1);
    if (streak >= 2) difficulty += 0.1;     // winning easily: push a little
    if (streak <= -2) difficulty -= 0.15;   // struggling: help a bit more than you push
    difficulty = Math.Clamp(difficulty, 0.7, 1.3);
    Console.WriteLine(
quot;{result,-5} streak {streak,2} -> difficulty {difficulty:F2}"); }
win   streak  1 -> difficulty 1.00
win   streak  2 -> difficulty 1.10
win   streak  3 -> difficulty 1.20
death streak -1 -> difficulty 1.20
death streak -2 -> difficulty 1.05
death streak -3 -> difficulty 0.90
win   streak  1 -> difficulty 0.90
death streak -1 -> difficulty 0.90
win   streak  1 -> difficulty 0.90
win   streak  2 -> difficulty 1.00

The rules worth copying: react to streaks, not single events (one death can be bad luck); help faster than you punish; and clamp the range so the game never becomes trivial or impossible. Whether to tell players about it is a design choice: some feel cheated when they find out.

Let players choose

The simplest difficulty tool is still a menu: easy, normal, hard. Modern games increasingly add assist options instead: slower game speed, invincibility, skipping a section. Celeste's Assist Mode is a well-known example. These let more people finish your game without changing the experience for anyone who doesn't use them.

Test yourself

What is a sawtooth difficulty curve?

  1. Difficulty that stays flat
  2. Difficulty that rises within a section, drops at the start of the next one, and trends upward overall
  3. Random difficulty
  4. Difficulty that only decreases

In the 'teach, test, twist' pattern, what does 'twist' mean?

  1. Remove the mechanic
  2. Combine the mechanic with something the player already knows
  3. Explain it with text
  4. Make it random

Why does the DDA example clamp the difficulty?

  1. To save memory
  2. So adjustment never makes the game trivial or impossible
  3. Because doubles overflow
  4. To make it random