Sub topic 1
What Progression Is and Why It Matters
Progression is the system that makes a player feel they are growing stronger, learning more, or reaching new places over time. This chapter covers the core ideas and shows how to compute an experience curve. Later chapters build on it.
Prerequisites
This chapter assumes you have played and analyzed video games, can read short Python snippets, and know exponents and sums from algebra.
What Progression Is and Why It Matters
Progression is the sequence of changes that tells a player "you are getting somewhere." Without it, a game gives the same challenge and options from start to finish, and players stop caring. Good progression sets the pace of a game and decides which choices matter.
Motivation and Feedback Loops
A feedback loop is a cycle where a player acts, the game responds, and the player acts again with new information. Progression supplies the response. Each small reward, such as a level-up sound or a new ability, closes one loop and opens the next. Rewards that arrive too rarely make players quit. Rewards that arrive too often lose their meaning.
Power, Content, and Skill Progression
Designers usually work with three kinds of progression:
- Power progression raises the character's numbers, such as damage or health.
- Content progression unlocks new areas, quests, or enemies.
- Skill progression grows the player's own ability, such as timing or strategy.
A game needs a clear mix of these. A roguelike may rely on skill, while an RPG usually leans on power and content.
Experience Points and Levels
Experience points (XP) are a counter that the game increases when the player completes actions. A level is a threshold on that counter. The following code computes the XP needed for each level, where each level costs 15 percent more than the last.
def xp_to_next(level, base=100, growth=1.15):
"""XP needed to go from `level` to `level + 1`."""
return round(base * growth ** (level - 1))
def total_xp(level, base=100, growth=1.15):
"""Cumulative XP needed to reach `level` from level 1."""
return sum(xp_to_next(l, base, growth) for l in range(1, level))
print(xp_to_next(1), total_xp(10))Running this prints 100 1678. The player needs 100 XP for the first level-up and 1678 XP in total to reach level 10.
Designing the Level Curve
A level curve is the shape of the XP cost across levels. Growth above 1.0 makes later levels slower to reach. Growth of exactly 1.0 makes every level equally costly, which becomes monotonous. Designers set the growth factor, then compute milestones such as total_xp(10) and check that the pace suits the game length.
Exercise
Using xptonext, how much XP does the player need to go from level 3 to level 4?
Show answer
132. The function returns round(100 1.15 * 2), which is round(132.25), so the answer is 132.