Lesson Notes — Popularity Is a Currency: Sources, Sinks, and Converters
Course 2: Game Design & Development Principles / Unit 6: Game Design Mechanics, Rules & Documentation / Lesson 8: Popularity Is a Currency: Sources, Sinks, and Converters
Lesson overview
In One Life, Popularity looks like one number. It is really the total of many small things that happened between you and every classmate and staff member. Designers call a number the player earns, loses, and spends a currency. Today you read the real game code and find where popularity comes from (sources), where it goes (sinks), and what it can be exchanged for (converters). See also Unit 4, Lesson 7: Resource Flow.
Open One Life (opens in a new tab)
The recipe for popularity
In words, the game works out popularity like this:
- Every classmate and staff member you meet has a score for you, made of points from events.
- Labeling someone Friend adds a bonus of 5 to their score. Labeling someone Crush adds 7. The bonus does not stack.
- Popularity is the total of everyone’s scores, plus a starting amount.
Each event has a name and a point value. The game keeps a table of them. The same moment with the same person is only counted once.
Sources and sinks: the interaction table
This is the table from the game’s code. A positive number is a source. A negative number is a sink.
| Event name | Points | Event name | Points |
|---|---|---|---|
| kept | +4 | noShow | -5 |
| inclusion | +2 | classFight | -4 |
| apology | +2 | decline | -3 |
| dialogue | +1 | escalation | -3 |
| encounter | +1 | fled | -3 |
| honor | +1 | mock | -2 |
| unavailable | 0 | conflict | -2 |
| deescalate | 0 | ignored | -2 |
| fightStaff | -2 | ||
| bombed | -1 | ||
| fightWitness | -1 | ||
| redirect | -1 |
The game says a conversation earns 1 point, keeping a hangout plan earns 4, and missing a plan costs 5. Some names are easy to figure out (kept, noShow, apology). Others you will have to discover by playing or searching the code. That is Section 1 of your handout.
A second sink: drifting apart
Popularity also drains when you ignore people. Every other day the game checks how long it has been since you last talked to each person, and takes points away:
- Boyfriend or Girlfriend: lose 1 point after a day without contact. After 4 days they break up with you and you lose 3 more.
- Best friend: lose 1 point after 2 days. After 4 days they are downgraded to Friend.
- Friend or Crush: lose 1 point after 3 days. If their score falls below 3, you drift apart.
- Anyone else with a positive score: lose 1 point after 3 days.
A few characters, like Malik, are exempt. This is a negative feedback loop: the more people you collect, the more effort it takes to keep them.
Converters: what popularity buys
- Friend slots: one Friend or Best friend slot for every 10 points of popularity. The formula is
Math.floor(popularityScore() / 10). - Relationship thresholds: a person’s own score must reach 3 for Friend, 5 for Crush, 15 for Best friend, and 11 for a dating relationship. For dating, they also have to be one of the three people you are closest to.
- Homecoming: only in senior year, and only at 300 popularity or more. At 300 the chance is 40%. Every 10 points above 300 adds 1%, up to a maximum of 95%.
Notice the pattern: popularity is not the goal by itself. It is a currency that opens up things the player wants. A threshold is a number where something changes. Slots and homecoming are both thresholds.
Find the hidden variable
- Start a new game. Look at the dashboard. Write down the Popularity number.
- Press
F12to open the browser developer tools and click the Console tab. - Type
popularityScore()and press Enter. Write down the number. - Type
likePointsand press Enter to see the whole interaction table.
The two popularity numbers will not match. The game adds a starting amount that the dashboard does not show. That is a hidden variable. Work out how big it is, and decide what it changes for the player.
Your turn
- Fill in the interaction table on your Popularity Ledger by finding what triggers each event.
- Solve the Maya’s week problem and the converter tables.
- Find the hidden variable and record its size.
- Label every source, sink, and converter you found, then mark which one you would change to make the game feel more fair.
Check your understanding
- Why is popularity a currency and not just a score?
- Name two sources, two sinks, and one converter.
- Why does the game take points away when you stop talking to people? What would happen without it?
Use this lesson’s Key Terms page to build your glossary.