Guide
What is a game loop and why define it first
Before you think about characters or story, explain in one sentence what the player does. Tetris, Flappy Bird, and Balatro all fit in one.

SUMMARY FOR WHEN YOU'RE SHORT ON TIME · 2 min
A game's loop, or core loop, is the action the player repeats again and again: they do something, see the result, and want to do it again. Roblox's documentation calls it the central gameplay on which the entire game is built. That is why it comes before characters and story, but a clear loop still does not guarantee a fun game.
- The loop, or core loop, is what the player does again and again: do something, see the result, and want to do it again.
- Roblox's documentation describes the core loop as the central gameplay on which the entire game is built, with three parts: the minute-to-minute action, the most repeated action, and what moves the player forward.
- The phrase "30 seconds of fun" came from Bungie, the studio behind Halo; Jaime Griesemer, a designer on the first Halo, says the idea showed up in a 2002 GDC talk.
- For Griesemer, the phrase was misunderstood: the point was to vary those 30 seconds, with different weapons, places, and enemies, not to repeat the same stretch.
- In Tetris, from 1985, the player rotates and fits pieces to complete lines, which disappear; the game ends when the pieces reach the top.
- Flappy Bird was made by Dong Nguyen in two to three days, according to Wikipedia, and its whole loop is a tap on the screen.
- Balatro, from 2024, was made by one person, LocalThunk, and passed 5 million copies by January 2025, with a loop of playing poker hands to beat a target.
Your first step: Today, write in one sentence what the player of your game does again and again, and read it to someone who has never heard the idea.
What is a game loop?
The loop is what the player does again and again, throughout the whole game. It has three beats: the player does something, sees the result, and wants to do it again. In the industry, it is called the core loop.
Roblox's documentation, one of the largest platforms for user-made games, defines the core loop as the central gameplay on which the entire game is built1. Everything that comes after, like levels, characters, music, and story, exists to serve that repeated action.
That is why it is the first thing to define. If you cannot say what the player does, you do not know yet what game you are making, no matter how good the character you already imagined is.
What are the parts of a loop?
In Roblox's description, there are three: the minute-to-minute action, the most repeated action, and what moves the player forward1.
| Part | What it is | Roblox's example, in an action adventure game |
|---|---|---|
| The minute-to-minute action | What the player does all the time, the base of the game | Exploring new areas or revisiting old ones |
| The most repeated action | The one that shows up most and usually defines the game | Fighting: dodging, striking, and guarding |
| What moves the player forward | The system that takes the player ahead | Leveling up and gaining skills |
In the documentation's example, the loop goes like this: explore, fight, upgrade the character, and go back to exploring, now stronger1. The third part is the one most people forget. Without it, according to Roblox, the game can feel repetitive, boring, and shallow1.
Notice that none of the three parts talks about story or setting. They talk about verbs: explore, fight, upgrade.
Where did the 30 seconds idea come from?
It came from Bungie, the studio that made the first games in the Halo series, a shooting game. The phrase "30 seconds of fun" became a motto for the series, according to the official Microsoft blog3.
The person who tells the origin story is Jaime Griesemer, a designer on the first Halo. In a 2011 interview with Engadget, he said the idea of a short, repeated segment of gameplay showed up in a 2002 talk at GDC, the largest conference for game makers, which he prepared with programmer Chris Butcher2.
But in his view, the phrase was misunderstood. Griesemer said everyone uses the phrase to mean the opposite of what he meant2. The common reading was: find 30 fun seconds, repeat them, and you have a game. His point was different: play those 30 seconds in different places, with different weapons, vehicles, and enemies, so that no stretch is the same as the last one2.
He also described loops as boxes, one inside the other: a 3-second loop inside a 30-second loop, inside a 3-minute loop that is always different2. In Halo, the 30 seconds were the decisions of each fight, like where to stand, when to shoot, and when to dive away from a grenade2.
Our reading: both ideas help beginners. The short action has to be good on its own, and variation is what keeps the player going after it.
What do the loops of famous games look like?
Each fits in one sentence. First, a note: none of these games was made with AI, and their creators already knew how to code. They are here to show the size of a loop that works, not to promise results.
| Game | Do | See | Want again |
|---|---|---|---|
| Tetris (1985) | Rotate and fit the falling piece | The completed line disappears | The next piece comes, faster each time |
| Flappy Bird (2013) | Tap the screen to make the bird rise | It got through the pipes or crashed | One more round, which lasts seconds |
| Balatro (2024) | Play a poker hand | The chips add up and the round's target is reached or not | The next round, with new Joker cards |
Tetris. Pieces made of four blocks fall one at a time. The player moves and rotates each piece to complete full lines; a completed line disappears, the blocks above drop down, and the fall speeds up. The game ends when the stacked pieces reach the top. It was created by Alexey Pajitnov, a software engineer at a computing center of the Soviet Academy of Sciences, and was finished in 1985, according to Wikipedia4. The full story is in who created Tetris.
Flappy Bird. The little bird falls on its own and only rises when the player taps the screen. Each pair of pipes it gets through is worth one point, and hitting a pipe or the ground ends the round. Vietnamese artist and programmer Dong Nguyen made the game in about two to three days and released it for iPhone on May 24, 2013, according to Wikipedia5. The whole loop is a single tap.
Balatro. The player builds poker hands from the cards they hold and tries to beat a score target each round, with a limited number of hands and discards. Joker cards, bought in a shop between rounds, change how points are counted6. Steam, the largest store for computer games, describes it as a poker-inspired card game7. It was made by one person, who goes by LocalThunk, in Canada, over about two and a half years, and came out on February 20, 20246.
Balatro shows Roblox's three parts well. The minute-to-minute action is choosing cards; the most repeated one is playing a hand; what moves you forward is the Jokers and the target that rises every round.
In numbers
| Data | Number | Source and date |
|---|---|---|
| Year Tetris was finished | 1985 (some accounts say 1984) | Wikipedia, accessed October 25, 20264 |
| Time to make Flappy Bird | About two to three days | Wikipedia, accessed October 25, 20265 |
| Balatro development time | About two and a half years, from 2021 to 2024 | Wikipedia, accessed October 25, 20266 |
| Balatro sales | More than 5 million copies by January 2025, not counting Apple Arcade | Wikipedia, accessed October 25, 20266 |
| Talk where the short, repeated segment idea showed up | GDC 2002 | Jaime Griesemer to Engadget, July 14, 20112 |
How do you know if your loop is clear?
Do the 30-second test: in 30 seconds, say in one sentence what the player does, and see if someone who has never seen the game understands. If the sentence will not come out, the idea is not clear yet. The test is a rule of thumb of ours, not a measurement: the name borrows Halo's motto, and the time is just a limit to keep the sentence from turning into a speech.
Three signs the sentence is not ready yet:
- It needs "and also". "They explore, fight, build houses, raise animals, and also talk to villagers" describes five games. Pick the verb that repeats most.
- It talks about the world, not the action. "A knight in a cursed kingdom" is a setting. The loop starts with the verb: what does the knight do every minute?
- It has no "want again". If the sentence stops at the result, it is missing the reason to play again, which is Roblox's third part1.
Writing the loop also helps people who make games with AI. AI builds what you describe and fills in what you do not describe with the most common choice, as we explain in what is vibe coding. A clear loop sentence is the part of the request that only you can decide.
Does the loop come before story and character?
Yes, in the order of the work. Roblox's documentation treats the core loop as the base of the entire game1, and Flappy Bird shows you can have a game with almost no story. The opposite is harder: a good story does not hold a player if what they do every minute is not fun (our reading).
That does not mean story and characters do not matter. It means they lean on the loop. In Halo, according to Griesemer, the variety of places, weapons, and enemies is what brings the 30 seconds to life2. All of that comes in after the central action is defined.
The other side
A clear loop does not make a game fun by itself. Whether it is good can only be found out by playing and watching other people play. The person behind the 30 seconds idea himself warns that repeating a fun stretch is not enough: without variation, the game gets tiring2. And the three games on this page are survivors: for each of them, there are thousands of small games, with simple loops, that almost nobody played.
What comes after defining the loop?
Next comes the size of the game: one screen, one main action, and a short round, as we explain in how to start making a game. The steps after that, with what AI does in each one, are in how to make a game with AI.
Your action plan
Check off what you've done. It's saved on this device, so you can pick up where you left off.
Related questions
What is a core loop?
It is the cycle of actions the player repeats throughout the whole game: do something, see the result, and want to do it again. You can also call it the main loop.
Is a game loop the same as a mechanic?
Not exactly. A mechanic is a rule or an action, like jumping or rotating a piece. The loop is the full cycle: the action, its result, and the reason to do it again.
Where does the 30 seconds of fun idea come from?
From Bungie, the studio that made Halo. Designer Jaime Griesemer told Engadget in 2011 that the idea of a short, repeated segment of gameplay showed up in a 2002 GDC talk he prepared with programmer Chris Butcher.
Can a game have more than one loop?
Yes, and it almost always does. Griesemer described a 3-second loop inside a 30-second loop, inside a 3-minute loop. In Roblox's documentation, the loop of an action adventure game is explore, fight, and upgrade.
What is the loop in Tetris?
A piece falls, you rotate and fit it, the completed line disappears, and the next piece comes. The fall speeds up as you clear lines, and the game ends when the pieces reach the top.
Does a good loop guarantee the game will succeed?
No. A clear loop is the start, and whether it is fun can only be found out by playing. The famous games on this page are exceptions among thousands of small games that almost nobody played.
Sources
- Roblox Creator Hub, "Core loops". Accessed October 25, 2026.
- Engadget (Joystiq), "Half-Minute Halo: An Interview with Jaime Griesemer" (07/14/2011). Accessed October 25, 2026.
- The Official Microsoft Blog, "Meet the 'Halo 4' Engineers Delivering '30 Seconds of Fun'" (12/10/2012). Accessed October 25, 2026.
- Wikipedia, "Tetris". Accessed October 25, 2026.
- Wikipedia, "Flappy Bird". Accessed October 25, 2026.
- Wikipedia, "Balatro". Accessed October 25, 2026.
- Steam, Balatro store page. Accessed October 25, 2026.
Was this article helpful?
Thank you. This helps us decide what to improve.
Once a week, what changed in making games with AI
Every Tuesday, a 3 to 5 minute read: the news that changes something for people who want to make a game, one reader question answered, and the new articles. Unsubscribe anytime with one click.
By signing up, you agree to the privacy policy.
Done. We sent you an email to confirm.
That didn't work. Check that your email is correct and try again.
Found a mistake? Let us know. We fix it and log the correction on the page. Report a mistake