Sub topic 1
What a Game Economy Is: Resources and Flows
Prerequisites
This chapter assumes you have played games with shops, loot, or upgrades. You should be comfortable with simple arithmetic and reading short Python snippets. No prior economy design experience is needed.
Resources and flows
A game economy is the set of resources players can gain, spend, and hold. A resource can be coins, gems, crafting materials, energy, or time. Each resource moves through the game in flows. An inflow adds to a player's stock, and an outflow removes from it.
The economy stays healthy when inflows and outflows are roughly matched over time. If inflows dominate, the stock grows until prices feel cheap. If outflows dominate, players run out and quit.
Currencies
A currency is a resource that players use as a common unit of value. Most games use one or more currencies so that prices can be compared across items. A game often needs only one or two currencies. Each extra currency adds complexity, so add one only when it has a distinct job, such as paying for cosmetics separately from gameplay items.
Sources: where currency enters the game
A source is any mechanism that adds currency to a player's balance. Common sources include quest rewards, enemy drops, daily logins, and selling items to a vendor.
Sources are the faucets of the economy. You can measure a source's rate as currency per hour or per day. The simulation below models a player who earns 100 coins per day from a quest.
income = 100 # coins added per day by a quest source
repairs = 30 # coins removed per day by a repair sink
balance = 0
for day in range(7):
balance += income
balance -= repairs
print(f"Day {day + 1}: balance {balance}")Sinks: where currency leaves the game
A sink is any mechanism that removes currency from the player's balance. Common sinks include shop purchases, repair fees, crafting costs, and upgrade prices.
Sinks are the drains of the economy. Without sinks, currency piles up, and prices lose their meaning.
> Note: Every source needs a matching sink. If the rate of currency entering the game is far higher than the rate leaving it, the economy will inflate.
Exercise
A player earns 200 coins per day and spends 150 coins per day on repairs. After 5 days, what is the balance?
Show answer
The net gain is 50 coins per day, so the balance is 250 coins after 5 days.