From phone column to desktop: making Arrow Puzzle responsive on the web

Arrow Puzzle started as a phone game squeezed into a column on the web. Here is how it grew a proper desktop layout without a second codebase.

Our first web build did the simplest safe thing: it letterboxed the phone layout into a mobile-width column. Nothing broke, but on a wide monitor the game looked like a phone floating in an empty room. This is how we fixed that with the same Flutter codebase.

Three size classes

Everything keys off the window width. Compact is anything under 600 pixels, medium runs from 600 to 1023, and expanded starts at 1024. Compact and medium keep the portrait-first layout, with medium windows showing the same content in a centred column capped at 560 pixels. Expanded windows get a layout of their own.

Arrow Puzzle's real compact, medium and expanded layouts, from a phone to a desktop browser
Arrow Puzzle's real compact, medium and expanded layouts, from a phone to a desktop browser

What changes on desktop

  • Home becomes two panes, with the brand on the left and the actions on the right.
  • Level Select uses an adaptive grid of cards inside a container about 1100 pixels wide.
  • Gameplay centres the board and moves the HUD (stars, moves, pieces left, plus pause, help and restart) into a side panel 320 pixels wide.
  • Settings becomes a centred card, capped at 560 pixels.

One detail took a second pass: on very wide windows the board and its side panel drifted to opposite edges. We now cap them as a single group, about 1000 pixels wide, and centre that group so the board and its stats stay together. The win panel floats above the bottom edge instead of stretching across the window.

Phones turned sideways

A landscape phone is wider than it is tall, but it is not a desktop. Viewports under 500 pixels high get the side-panel layout too, in a compact variant, so the board keeps the full height. The ad banner stays visible as a strip under the board column.

Dialogs and scrims

Dialogs and panels have width caps, and their dark scrim now covers the whole window. Clicking outside the content column dismisses the open pause overlay or dialog, which is what desktop players expect.

What does not change

The puzzle itself. Cells stay between 32 and 64 pixels, colours and animation timings are identical on every screen size, so a level plays the same on a phone and on a 27-inch monitor.

Try it in your browser at https://arrow-puzzle.nodevstudios.com.

More from the Arrow Puzzle devlog

All posts
21 November 2026Building a puzzle game with Flutter and RiverpodA look at how Arrow Puzzle is organised: logic kept apart from the UI, custom painters for the snakes, and a small, testable core.17 November 2026How we make sure every Arrow Puzzle level can be solvedA puzzle that cannot be solved is a bug. Here is how Arrow Puzzle generates dense, winding levels and verifies each one before it ships.15 November 2026A logo drawn in code, and a Home screen to matchArrow Puzzle's logo is not an image file. It is four game pieces and a wordmark painted by the same code that draws the board.