Back to blog
Engineering

What the game learns when you lose

Halfbrick used how players died in Jetpack Joyride to help choose their next ad reward. A look at why those offers work and what developers choose to optimize.

#Game Design#Psychology#Monetization#Machine Learning
Date
11/04/2026
Read
7 min read
Cat
Engineering

In 2022, Google published an account of its work with Halfbrick on Jetpack Joyride. The game offered players rewards for watching a video ad, and Halfbrick wanted to improve how it selected those rewards. Previously, the selection had been random.

The replacement used a model running on the player's device. Halfbrick collected 129 training signals, including information about player skill, selected powerups, and how the player had died during the current session. Google reported a 36% increase in interactions with the rewarded-video offer.

That last detail is what caught my attention. How you died could help determine what the game offered you next.

There are limits to what we can conclude from the result. The reported increase was in offer interactions, not revenue, and the public write-up doesn't include every experimental detail. But it describes a fairly specific use of machine learning: selecting an in-game reward that makes a player more willing to watch an ad.

I wanted to understand why that offer works. Part of the answer is timing. A reward that seems unimportant in a menu might be useful immediately after a failed run. The rest has to do with why we care about making progress in a game at all.

Why the next attempt matters

Pokémon is a useful place to start because there were so many overlapping reasons to keep playing.

You could catch a new Pokémon, improve your team, beat a Gym, or reach somewhere you hadn't explored. Each activity helped with the others. Catching something expanded your options in battle; winning battles helped you explore and catch more. You also developed preferences. Some Pokémon stayed on your team because you liked them or had already spent hours raising them.

Trading brought your friends into that relationship. Red and Blue each had Pokémon the other version lacked, so completing the collection required someone else's help. Your friend's cartridge gave you a reason to compare notes and arrange a trade.

The developers paid attention to that attachment. An unofficial English translation of a 1996 interview describes decisions around nicknames and original-trainer records, including how to make the creatures feel alive when they moved between Game Boys.

Calling all of this a reward loop is accurate enough, but it leaves a lot unexplained. A new Pokémon mattered because it belonged to a world you cared about, could help your team, or was something your friend didn't have. The reward needed a reason to be desirable.

That matters when we get to purchases. A game has a much easier time selling another chance once you care about what you could accomplish with it.

Selling a chance to finish

Consider failing a level when you're one move from completing it. You've spent time on the attempt, you can see what went wrong, and you think you know how to finish. An offer for extra moves arrives with a use already attached.

Candy Crush makes this relationship explicit. King's explanation of the lives system describes losing a life after failing a level, replenishing a life after 30 minutes, and options to purchase extra moves or lives. Players can also ask friends for help.

The decision is partly about the money and partly about whether you want to abandon the attempt or wait.

Research on perceived progress helps explain why the unfinished task can be persuasive. In a 2006 car-wash experiment, researchers gave customers either an empty eight-stamp loyalty card or a ten-stamp card with two stamps already filled. Everyone needed eight purchases to earn the reward. Yet 34% of customers given the apparent head start redeemed it, compared with 19% of those given an empty card.

That experiment doesn't establish how much a game earns from selling extra moves. It does show that people can respond differently to the same remaining effort depending on how their progress is presented.

In a game, the offer also has the advantage of arriving while you're still thinking about the solution. You don't have to imagine a future use for the purchase. You have one in front of you.

Choosing the offer

The Jetpack Joyride example adds personalization to that timing.

A developer can choose a fixed reward for everyone or select one randomly. Halfbrick instead used information about the player and the current session to choose a reward. The player's response then provided a measurable result: did they interact with the offer?

This is narrower than the claim that games secretly make levels impossible to force purchases. The published Jetpack example documents reward selection. It doesn't establish that the game adjusted an individual player's difficulty.

Other parts of the experience can be personalized, too. A separate Halfbrick case study describes changes to ad frequency and the wait to unlock levels. It reports a 16% increase in average revenue per daily active user, with no reported change in retention, engagement, or ratings. That was a different intervention from the Jetpack reward-selection example, but it illustrates how many decisions around a game can be optimized.

These systems don't necessarily require sophisticated models. A rule can give paying customers fewer ads or delay advertising until someone finishes the tutorial. Firebase's hybrid monetization tutorial includes creating a purchaser audience and giving it a different advertising experience.

Firebase's personalization system goes further by letting developers supply alternative experiences and an objective. The system chooses among those alternatives for users and evaluates results against a holdout group.

For a developer, much of the consequential work happens when choosing those alternatives and the metric. Increasing ad interactions is a clear objective. Whether the resulting experience is one you would want to use is harder to capture.

What the business is measuring

A player who never buys anything can still generate advertising revenue. That gives the publisher a reason to offer something valuable in exchange for watching an ad.

It also creates a tradeoff. Showing more ads may increase revenue during a session while making someone less likely to return.

Take a hypothetical game with 10,000 daily players who each see four ads. At $10 earned per thousand impressions, that produces $400 a day. Five ads per player would produce $500, assuming everything else stayed the same. If the extra interruptions eventually reduced the daily audience to 7,000, revenue would fall to $350.

Those are invented numbers, but they show why a publisher might optimize ad frequency rather than simply show as many ads as possible. Keeping you interested has financial value. So does persuading you to accept one more interruption.

The difficult question is how that balance feels to the person playing. Retention and revenue can help evaluate a business decision without fully describing the experience it creates.

Paying to keep going

Later Pokémon games show how purchases can be attached to an existing interest in collecting.

In Pokémon GO, extra incubators let players hatch multiple eggs at once. You still have to walk, and you don't know exactly what will hatch, but buying capacity lets more eggs progress simultaneously. Events can add a deadline: Adventure Week in August 2024 included a $2 Timed Research ticket with incubators and encounters, with tasks and rewards that had to be completed and claimed before the event ended.

Pokémon TCG Pocket's 2024 launch announcement described pack stamina accumulating every 12 hours, allowing two free packs a day. Purchasable Poké gold could shorten the wait.

For someone who enjoys collecting the cards, that offer has an obvious appeal. The design question is how often the game asks them to make that decision, and how much of the surrounding experience makes waiting feel frustrating.

Enjoyment doesn't settle that question. A player can like a game and still feel pressured by its deadlines or purchase prompts. A 2022 survey of 178 players found that engagement features could produce motivation alongside feelings of obligation, chores, and fear of missing out. A daily challenge might be something you look forward to for a while and eventually become something you feel you need to get out of the way.

What I'd want to know as a developer

The Jetpack example interested me because it makes the optimization concrete. There are inputs, a choice between rewards, and a response to measure. You can see what the system is learning to do.

I'd want the same clarity about the constraints around it. How often can it make an offer? What happens after someone declines? Can a player disable the prompts? How would the team notice if increased revenue came with more regret or frustration?

Some boundaries are easier to identify than others. The FTC's 2023 final order requiring Epic Games to pay $245 million in refunds concerned allegations of dark patterns and unauthorized charges, including confusing purchase controls. Those are specific interface and consent problems that teams can examine directly.

The everyday decisions are often less obvious. An extra-life offer can be useful. A rewarded ad can be a reasonable exchange. But once a team starts optimizing those decisions for each player, it takes responsibility for more than whether the model improves the target metric.

What I'd look for in the engineering write-up is how the team decided when an increase in offer acceptance was a good result—and what would have made them reject it.

Written by

Matthew Keeley

Matthew is the founder of PlatformSecurity and focuses on agent security. He previously led platform security at SeatGeek and security engineering initiatives at Fanatics. His work includes Checkpoint, SeatGeek’s platform for temporary, self-service access to cloud infrastructure, and security tooling built into engineers’ everyday workflows.

Share

More in Engineering

All posts