Pattern generator

Seeded lane pattern generator for your endless runner

Type a seed and receive obstacle patterns for 2, 3 or 5 lanes that a checker has already walked from start to finish. Same seed, same pattern, always.

A pattern that can't be beaten isn't hard: it's a bug your player discovers.

This is the Patterns tab of Subway Surfers · Economy, Difficulty and Patterns: an obstacle-segment generator for endless runners that never shows you anything unplayable. You give it your game's real parameters —lanes (2, 3 or 5), segment speed in units per second, length, density in obstacles per 100 units, which obstacle types you want and how long your jump, slide and lane change take— and it returns a batch of patterns ready to drop into your engine.

The key is the seed. You type up to 24 characters (letters, numbers and dashes) and that text is the only source of randomness: the server derives the generator from "seed + index + attempt + lanes + speed," so the same text with the same parameters returns exactly the same pattern today, tomorrow and on your teammate's computer. If you leave it empty, a short random seed is generated and shown to you, so you can come back to that pattern whenever you want. That's what turns a generator into something you can version: the bug report fits the seed, not a 400-line JSON file.

Before delivering each pattern to you, a dynamic-programming solver plays it: it walks the ordered obstacles, tracks which lane you're in and until what instant you're committed to a jump or a slide, and checks that there's at least one line that passes it entirely with the timings you declared. If it doesn't find one, the pattern isn't published: it's retried up to 8 times, spacing obstacles 12% further apart each time, and what doesn't pass is discarded and counted for you. All lanes are never closed at once, and two-lane obstacles (train and tunnel) only appear if you have 3 or more.

The preview draws the segment vertically with the lanes, each obstacle colored by the action it requires —jump, slide or change lane—, the coins, and the valid line the solver found drawn on top, with the coins that can be collected without leaving it and the pattern's narrowest reaction window in milliseconds. From there you take it to JSON, to a Unity C# script (GeneratedPatterns.cs) or a Godot GDScript one (generated_patterns.gd). Everything is deterministic and calculated by the server: there's no AI inventing coordinates here.

No sign-up

Try Pattern generator right here

Loading the tool…

Use it free without an account. If you want to save your result, you can sign up afterwards.

Save / Sign up

Benefits of Pattern generator

Same seed, same pattern

the seed (up to 24 characters) is the only source of randomness, so the segment is reproducible in your engine, your repo and your tester's bug report.

Verified before you ever see it

a solver walks every pattern using your jump, slide and lane-change timings, and anything without a line that passes it entirely never reaches you.

Retries that space out, not give up

if a pattern comes out impossible it regenerates up to 8 times, opening the gaps 12% more each time, and we tell you how many variants were discarded.

The valid line, drawn

the vertical preview shows the path the solver found and how many coins are collected by following it, out of the total, so you can see whether the segment rewards or punishes.

Five obstacle types by the action they require

low (jump), high (slide), block (change lane), train and tunnel, which occupy two lanes and only appear if you have 3 or more.

The narrowest gap, in milliseconds

each pattern comes with its minimum reaction window, and if it drops below the human floor of 250 ms we warn you that segment is passed by memorizing, not reacting.

Deterministic, not invented

the server calculates the patterns from your parameters. No AI places coordinates here, and the generator never closes all lanes at once.

Free, no sign-up and exportable

generate as many batches as you want without an account and take them to JSON, Unity C# or Godot GDScript. As a guest each batch brings 2 patterns; with an account, up to 8.

Give it a seed and keep only the segments that can be beaten

Lanes, speed, density and a seed. One click and you have the verified batch, with its valid line drawn and export to Unity or Godot. Free and no sign-up.

In the features that use AI, responses are generated by artificial intelligence and are not a substitute for professional advice.

Seeded lane pattern generator for endless runner