All work 02 / 03Game · Arcade Live on iOS and Android

Brick Swarm

One ball becomes thousands. A brick breaker built with Flutter and Flame.

Thousands of balls at once: a swarm of 2,187 breaking a sunflower made of bricks.Swarm Rush: beat the clock, picture after picture, with combos for quick clears.My pictures: a photo of a hot-air balloon turned into a level of bricks.The Bricknado: the whole swarm whirled into a tornado over a neon skyline.Swarm Clips: share a video of your best run and dare friends to beat it.

Thousands of balls. Every one simulated. Still 60 frames a second.

Brick Swarm is a portrait brick breaker, live on the App Store and Google Play. Catch a ×3 and your ball splits in three; catch another and they split again. Within seconds a swarm of thousands floods the screen and eats through pictures made of tiny bricks: 159 levels, a race against the clock in Swarm Rush, or a level made from your own photo.

That swarm is exactly the workload that makes a mobile game stutter, and it is the whole point of the game. So it had to hold a steady 60 fps on everyday phones, with effects, sound and haptics all switched on.

balls on screen at a steady 60 fps
8,000
levels across nine chapters
159
languages, every word translated
7
ads, analytics or tracking SDKs
0

How it's built

  1. A deterministic core in plain Dart

    The rules, brick grid, balls and power-ups live in their own package with no Flutter dependency. The same seed and inputs always give the same result, so play can be tested and replayed exactly.

  2. A fixed 60 Hz simulation

    Physics steps on a fixed clock and the renderer interpolates between steps on 90 and 120 Hz screens. Bricks, balls and debris are each drawn in a single batched call.

  3. A bot that plays every level

    It sets the star times for all 159 levels, plans each Daily Swarm, and runs stress ramps up to 8,000 balls so frame times can be read straight from a log.

  4. Photos into levels, runs into video

    My pictures turns a photo into a level: one pixel per brick, each matched to the nearest of ten colours as the eye sees them. Swarm Clips replays a clear from its recorded inputs and encodes it as a video. Both run on the phone.

Measured, not guessed.

I profiled on four phones, from a low-end Realme 5 to a 120 Hz moto g. Two fixes came straight out of the numbers: blurred text shadows were doubling GPU time around level clears, and animated text was being redrawn at every size.

UI-thread time per frame, Pixel 7milliseconds, lower is better
median at every step on a Pixel 7, from 1,000 to 8,000 balls
60 fps
median on a 120 Hz moto g 5G across the same ramp
118+ fps
median on a low-end Realme 5 with every effect on
60 fps

Stack

  • Flutter
  • Flame
  • Dart
  • flutter_soloud
  • in_app_purchase
  • slang (i18n)