Sub topic 1
What a Game Economy Is: Resources and Flows
A game economy is the system that controls how players obtain, hold, exchange, and use resources. A resource is anything with limited value that affects player decisions. Gold, crafting materials, energy, experience points, items, and even inventory space can be resources.
This chapter assumes you understand basic game loops, such as completing quests, receiving loot, visiting shops, and upgrading equipment. You should also be comfortable with percentages and short Python examples.
Prerequisites
- Basic familiarity with game rewards and costs
- Comfort with simple arithmetic and rates
- General understanding of a game's core loop
Model the Economy as Stocks and Flows
A stock is the amount of a resource held at a particular time. For example, a player may have 2,000 gold or 14 healing potions.
A flow is a change to a stock over time. A quest reward adds gold, while a shop purchase removes gold. The economy's basic rule is:
new stock = old stock + inflows - outflows
An inflow is a resource entering the stock. An outflow is a resource leaving it. In game design, inflows are often called sources or faucets, and outflows are called sinks or drains.
The system boundary matters. If a player sells an item, gold flows into the player's wallet, but the item flows out of the player's inventory. From the game's wider economy, however, the shop may receive the item and return gold. Always state which resource and which boundary you are measuring.
A Worked Example
Suppose a player starts with 300 gold. During one session, they receive 500 gold from quests and 100 gold from selling items. They spend 400 gold on equipment and 150 gold on repairs.
The calculation is:
- Starting stock: 300
- Inflows: 500 + 100 = 600
- Outflows: 400 + 150 = 550
- Ending stock: 300 + 600 - 550 = 350 gold
The player gained only 50 gold even though the game awarded 600 gold. The sinks absorbed most of the inflow.
A useful economy design document lists each resource and its flows:
| Resource | Main sources | Main sinks | Player purpose |
|---|---|---|---|
| Gold | Quests, sales, daily rewards | Purchases, repairs, fees | Flexible spending |
| Crafting ore | Mining, missions | Equipment crafting | Long-term progression |
| Energy | Time, consumables | Missions | Limits session activity |
Track Flows with Simple Code
This small model records a balance after each day:
def simulate(days, income_per_day, sink_rate, start=0.0):
balance = start
history = []
for _ in range(days):
balance += income_per_day
balance -= balance * sink_rate
history.append(round(balance, 2))
return history
print(simulate(5, 100, 0.10))The sink removes 10 percent of the current balance each day. Real economies need more detail, but this model helps reveal whether a resource grows without limit or disappears too quickly.
First Design Questions
When examining an existing economy, ask:
- What resources can players hold?
- Which actions create each resource?
- Which actions consume or destroy it?
- Can players exchange one resource for another?
- What prevents a stock from growing forever?
- Which flows are guaranteed, and which depend on player skill or time?
Exercise
A player starts with 200 coins, earns 450 from quests, and spends 300 in a shop. What is the ending coin stock, and which flows are sources and sinks?
Show answer
The ending stock is 350 coins. The quest reward is the source, and the shop purchase is the sink.