Sub topic 4
The Linear Baseline
Prerequisites and purpose
Assume you know basic game design terms such as stats, resources, units, and abilities. You should also be comfortable with simple arithmetic and short Python examples.
A cost curve maps a piece of content's power to its cost. The cost might be gold, energy, deck space, production time, or a character's budget. The curve gives designers a repeatable starting point instead of assigning every cost by intuition.
The linear baseline is the simplest useful curve. It increases cost by the same amount for every additional point of power.
The linear cost equation
A linear cost curve can be written as:
cost = base_cost + rate × powerbase_costis the fixed cost paid even at zero measured power.rateis the cost of one power point.poweris the estimated strength of the content.
For example, suppose a unit has a base cost of 5 and each power point costs 2:
| Power | Calculation | Cost |
|---|---|---|
| 0 | 5 + 2 × 0 | 5 |
| 5 | 5 + 2 × 5 | 15 |
| 10 | 5 + 2 × 10 | 25 |
| 15 | 5 + 2 × 15 | 35 |
The difference between adjacent rows is always 10 when power increases by 5. That constant change is the defining feature of a linear curve.
def linear_cost(power, base_cost=5, rate=2):
return base_cost + rate * power
for power in (0, 5, 10, 15):
print(power, linear_cost(power))This prints:
0 5
5 15
10 25
15 35The rate is also called the marginal cost. Marginal cost means the extra cost of one additional unit of power. In this example, one more power point always adds 2 cost.
Why start with linear?
Linear pricing is useful when:
- Power is measured reasonably well.
- Each stat point has a similar effect at different levels.
- You need an easy-to-explain budget.
- The content range is narrow.
- You want a neutral baseline before testing more complex curves.
A linear curve does not claim that the game is perfectly linear. It gives you a clear hypothesis. Playtests can then show where the hypothesis fails.
Choosing the intercept and rate
The base cost and rate should come from your game's budget.
Use the base cost for costs that do not depend on the measured power. For example, every unit might occupy one roster slot or require a minimum deployment fee.
Use the rate to connect power to the resource budget. If a typical unit has 20 power and should cost 40 resources, a simple choice is rate = 2 with no base cost. If all units also pay a fixed deployment fee of 5, use:
cost = 5 + 2 × powerKeep the baseline consistent across comparable content. If one unit uses a different rate, document the reason. A different rate may be justified for a special role, but unexplained exceptions make later balance audits difficult.
Exercise
Exercise
A unit has 12 power. The cost curve is cost = 4 + 1.5 × power. What is the unit's cost, and what is its marginal cost?
Show answer
The cost is 22 resources: 4 + 1.5 × 12 = 22. The marginal cost is 1.5 resources for each additional power point.