Book a free call

How to Build a Subway Surfer-Like Endless Runner

A Subway Surfer-like game is an endless runner: the character runs on its own while you dodge obstacles and collect coins. Here is how to build one, step by step.

Hertiv engineering teamReviewed by a senior engineer
8 min read
How to Build a Subway Surfer-Like Endless Runner
On this page

Short answer

A Subway Surfer-like game is an endless runner where the character runs forward on its own and the player swipes to dodge obstacles, switch lanes and collect coins. To build one, you need a three-lane track, a speed curve that rises over time, obstacles and power-ups, and scoring that rewards longer runs. Most teams build it in Unity and ship a first version in a few months.

What is a Subway Surfer-like game?

A Subway Surfer-like game is an endless runner: a game where the character moves forward automatically and the run only ends when the player hits an obstacle. The player does not steer the character forward; they swipe left and right to change lanes, swipe up to jump and swipe down to slide under barriers, while collecting coins and power-ups along the way.

The genre works because the input is simple and the challenge grows on its own. A new player understands the game in ten seconds, and the same player is still challenged after a hundred runs because the speed rises and the obstacle patterns get denser. That combination of easy start and rising difficulty is what keeps people opening the game again.

The core numbers are small. Three lanes, one speed curve, a handful of obstacle types and a few power-ups are enough for a first version. Teams that add more before the first release usually ship later with a game that is harder to balance. Start with the few systems that make the run fun, then add content once players are actually playing.

The table below shows the systems a first version needs.

SystemWhat it doesFirst-version scope
Track and lanesThree lanes the player switches betweenOne endless track, three lanes
ObstaclesThings to jump, slide under or dodgeFour types: barrier, train, ramp, gap
Coins and pickupsRewards that pull the player into riskCoins, one magnet, one score boost
Speed curveDifficulty that rises with distanceSpeed rises every 500 metres
ScoringPoints, best run, daily goalsDistance score plus best run saved

For the wider app decision before you start, what to do with an app idea helps you test whether the concept is worth building at all.

What are the core systems?

The core systems are the runner, the track, the obstacles and the rewards, and each one has a job. The runner handles movement: smooth lane changes, a jump with a fixed height and a slide with a fixed length. If the controls feel slow or the jump feels floaty, players blame the game, not themselves, and stop playing.

The track is built from segments that repeat and combine. A segment is a short stretch of track with a fixed pattern of obstacles and coins, and the game picks segments at random as the player runs. With about twenty segments, the game feels varied for a long time without needing hand-built levels. The segments also control difficulty: early segments are open and easy, later ones are dense.

Obstacles need to be readable at speed. A player moving fast must tell in a glance whether to jump, slide or switch lanes, so each obstacle type needs a distinct shape and colour. A barrier you slide under looks different from a train you must dodge, and both look different from a ramp you can run over. If two obstacles look alike but need different moves, players crash and blame the game.

Rewards pull the player into risk. Coins sit in lines that lead the player toward obstacles, so collecting them means taking chances. Power-ups such as a magnet or a score boost appear rarely enough to feel special. The balance is simple: a run with no coins feels empty, and a run where coins are everywhere feels free.

How do you design a run that keeps players coming back?

You design a run that keeps players coming back by making each run short, fair and slightly different from the last. A run that lasts one to three minutes fits a bus ride or a queue, and a player who crashes feels they lost by a small mistake, not by an unfair trap.

Fairness is the most important design rule. Every crash should be avoidable: the player should have seen the obstacle in time and had a lane free to move into. Test this by watching new players: if they crash on the same segment twice without understanding why, the segment is unfair and needs changing. Random segments must also be checked so two impossible patterns never appear back to back.

Progression gives the player a reason to return. Daily goals, such as collecting a set number of coins or reaching a distance, give a reason to open the game today. A best score and a friend leaderboard give a reason to beat yesterday. Characters and boards that players can earn give a reason to keep playing over weeks, but they should be earnable through play, not only through payment.

Sessions should end with a hook, not a dead end. After a crash, show the score, the best run, the next daily goal and one clear thing to try next time. A player who closes the game knowing what to aim for is far more likely to open it again tomorrow.

What are the steps to build it?

Building an endless runner follows a short sequence: prototype the movement first, then the track, then the content, then the systems around the run. Skipping the prototype is the most common way to waste months on art for a game that does not feel right.

  1. Prototype the movement. Build a grey-box runner with lane switching, jumping and sliding. Play it daily until the movement feels fast and responsive.
  2. Build the track system. Create the segment pool, the random picker and the speed curve. Check that segments connect without gaps or impossible jumps.
  3. Add obstacles and coins. Place four obstacle types and coin lines, and tune the density so the first minute is easy and the third minute is hard.
  4. Add scoring and progression. Save the best run, add daily goals and a simple character or board reward that players can earn.
  5. Add art and sound. Replace the grey boxes with a consistent style, add footsteps, coin sounds and a crash sound. Keep the art light so the game runs on older phones.
  6. Test with real players. Watch ten people who have never played it. Fix every crash they call unfair and every control they call slow.
  7. Ship a small first version. Release with one track, one character set and a few goals, then add content based on what players actually do.

Most teams build in Unity, which has the physics, the mobile export and the asset store a runner needs. A first version usually takes a small team two to four months from prototype to store, depending on how much art is custom. For the mobile side, developing mobile apps covers the store, testing and release steps.

What about art, sound and performance?

Art, sound and performance decide whether the game feels good on a real phone, and they are easy to get wrong. The art style should be bright and readable at speed: bold shapes, strong contrast between the track and the obstacles, and a character that stands out against the background. A pretty track that hides obstacles is a bad track.

Sound does more work than most teams expect. A coin sound, a jump sound and a crash sound tell the player what happened without them looking at the screen. Music should loop without getting annoying, and the game must keep working with the sound off, because many players play in public.

Performance is a hard limit. An endless runner must hold a steady frame rate on older phones, because a stutter at the wrong moment causes a crash the player did not deserve. Keep the number of objects on screen low, reuse track segments instead of creating new ones, and test on the cheapest phone your players are likely to own.

File size matters too. A game that downloads quickly gets more installs, so compress textures, limit the number of music tracks, and avoid shipping art the first version never shows.

Example (hypothetical): a first-release budget

Example (hypothetical): a team of three builds a first version in three months. One programmer works full time for three months at $6,000 a month, which is $18,000. One artist works half time for three months at $5,000 a month, which is $7,500. Sound and music cost $2,000 as a one-off package.

Testing and store costs add $3,000, and a small marketing test with ads costs $5,000. The total is $18,000 plus $7,500 plus $2,000 plus $3,000 plus $5,000, which is $35,500.

The team adds a 15% reserve for fixes after launch, which is $5,325, bringing the budget to $40,825. The reserve covers the first month of crash fixes and balance changes, which every runner needs once real players start playing.

The team also sets a target: 10,000 installs in the first month and at least 20% of players returning the next day. If the return rate is lower, the plan is to fix the first-minute difficulty before adding new content, because a game that loses players in the first minute does not need more content.

What are the common mistakes?

The most common mistakes in endless runners are unfair obstacles, a first minute that is too hard, and adding content before the movement feels right. Each one shows up in the first week of player testing.

  • Unfair obstacles. If a crash could not have been avoided, players quit. Every segment must leave a visible escape route.
  • Too hard too soon. The first minute should teach, not punish. New players who crash in the first thirty seconds rarely try again.
  • Art before movement. Polished art on sluggish controls still feels bad. Get the run feeling right with grey boxes first.
  • Too many systems at launch. Shops, clans, events and a battle pass in version one split the team's attention. Ship the run, then add systems.
  • Ignoring older phones. A game that stutters on a three-year-old phone loses the players who play most. Test on cheap hardware.
  • No reason to return. Without daily goals or a best score to beat, a runner is a toy, not a habit. Add one clear daily goal.

For a similar build in another genre, how to create a game like Fortnite covers the bigger team and budget a battle-royale style game needs.

Key takeaways

  • Three lanes, a rising speed curve and readable obstacles are the whole game
  • Every crash must be avoidable, or players blame the game and leave
  • Prototype movement with grey boxes before spending on art
  • A run should last one to three minutes and end with a reason to return
  • Test on the cheapest phone your players are likely to own

Frequently asked questions

What engine should I use for an endless runner?

Unity is the usual choice because it handles mobile export, physics and the asset store in one place, and most endless runner tutorials and templates are built for it. Unreal Engine can do it too, but it is heavier than a small runner needs.

How long does it take to build a Subway Surfer-like game?

A small team usually ships a first version in two to four months: a few weeks for the movement prototype, a month for the track and content, and a few weeks for art, sound and testing. A solo developer should allow longer, and a team that adds many systems should allow more.

Do I need a team, or can I build it alone?

One developer can build a first version alone if they use store assets for art and sound, but it takes longer. A team of two or three, with a programmer and an artist, ships faster and produces a game that looks and feels better.

How do endless runner games make money?

Most earn through ads between runs, in-app purchases for coins, characters and power-ups, and sometimes a subscription that removes ads. Ads pay best when runs are short and frequent, because players see many of them.

How do I make the game hard without making it unfair?

Raise the speed and the obstacle density gradually, and keep every pattern avoidable with a visible escape route. Test with new players and fix any segment where they crash twice without understanding why.

What is the hardest part of building an endless runner?

The movement feel. Lane changes, jumps and slides must respond instantly and predictably, or the game feels broken. Teams that prototype the movement first and play it daily find this early; teams that start with art find it late.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a mobile game and want a team that has shipped one? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Mobile App Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call