IKA LAB

Our Tool That Checks for Broken Screens Automatically

Dev diary · · イカラボ(IKA LAB)

At IKA LAB, we use a tool to check that the screen isn't broken before we release a game. This time, we're writing about why we made that tool and how it works.

Changing the numbers didn't fix it

Around October 10, 2026, we tried again and again to fix the position of on-screen text and the map in one of our games, and kept failing. We would change the position numbers and think it was fixed, but on the real screen it was still off.

The IKADOKU title screen on a phone held upright (390×844)
The IKADOKU title screen on a phone held upright (390×844). Whenever we fix how something looks, we take a screenshot at phone size like this and check it with our own eyes.

So we made a rule. After fixing anything visual, take a screenshot on a phone-sized screen and check it with our own eyes before releasing. Never say "it's fixed" just because we changed a number.

We had only checked portrait mode

The very next day, October 11, after releasing a game on a game site, we found layout problems in landscape mode. The big "DASH!" text covered the ranking display, and the "GOD DASH" text spilled off the screen. The tutorial card for first-time players was also cut off at the bottom, so the "Next" button couldn't be pressed.

The same IKADOKU title screen on a phone turned sideways (844×390)
The same title screen on a phone turned sideways (844×390). The screen is short in this direction, so the buttons are further down the page. We check both upright and sideways.

The cause was that we had only checked in portrait mode. So we made it a rule to check both portrait and landscape before releasing. These are the screen sizes we check:

  • Phone, portrait: 390×844
  • Small phone: 360×640
  • Phone, landscape: 844×390
  • Wide frames: 800×600 and 1100×620

A pre-release checklist, and a tool that checks automatically

Because we kept fixing things after release, on October 12 we made a pre-release checklist. We decided what goes on it by discussing it from four points of view: someone who looks for broken layouts, a strict reviewer, a tester who plays in deliberately tricky ways, and a first-time player.

The same IKADOKU title screen on a small phone (360×640)
The same title screen at small-phone size (360×640). For each size on the checklist, we look for text or buttons spilling out of the screen.

On the same day, we made layout_check.py, a tool that finds broken layouts automatically. For each combination of screen size and language, it really opens the game in a browser, takes screenshots, and finds problems with a program. Normally it checks two languages: Japanese, and Portuguese, whose text tends to run long.

It opens a fresh browser for each size and language, so even if a heavy game freezes the browser, the other checks keep going. If it stops partway, the results up to that point are kept.

Which screens it captures

The tool opens the game, waits for the splash screen to disappear, and first captures the title screen. Next, it presses the title screen's buttons one by one and captures the screen each one leads to. It skips buttons such as home, share, full screen, reset, and language or sound switches.

For the play screen, it automatically looks for a button like "Start," presses it, waits a little, and takes a shot. Since a tutorial card may be showing, it waits about 3 more seconds and takes another.

Before each shot, it waits for pop-in animations to finish (up to 3 seconds). If it measured things while they were still moving, the results wouldn't be right.

For effects, if the game has a way to show praise words, the tool uses it to show the longest praise phrase in that language at the far left and far right edges of the screen, to see whether it stays on screen even at the edges. If the game has a clearText element, it also shows the "CLEAR!!" text and captures it. In short, it captures these screens:

  • The title screen
  • Each screen reached by pressing a title button (instructions, settings, stage select, and so on)
  • The play screen (shortly after starting, and about 3 seconds later)
  • Effects (the longest praise phrase at the left and right edges, and "CLEAR!!" in games that have clearText)
  • Game-specific scenes written in scenes.json

What it looks for, and how to read the results

For every screenshot, the program searches for layout problems. Text is measured by the size of the letters themselves, not by the box that holds them.

To decide whether a button can be pressed, it checks whether something else sits on the center of the button. Overlaps are not counted when one item is hidden under a card. And when a page scrolls and many things spill off the bottom, it groups them into a single entry, because listing them one by one would be hard to read.

The results become a page that shows, for each game, the number of NG items (red) and warnings (yellow). The screenshots are lined up with red frames on NG spots and yellow frames on warnings. If there is even one NG, the tool ends by returning a failure signal (exit code 1).

NG items are fixed before release. Warnings are things we fix if we can. Buttons that are too small or stuck to the bottom of the screen count as warnings. Here is what it looks for:

  • A scroll bar appears on the page
  • Text or buttons spill off the screen
  • An important button (Start, Next, Close, and so on) can't be seen without scrolling inside a card
  • Something covers a button so it can't be pressed
  • Text overlaps text, or text overlaps a button
  • Effect text goes off the screen
  • A button is too small (under 28px)
  • A button is stuck to the very bottom of the screen

What the tool can't do

The tool can't trigger effects that only appear during play by itself, such as big text like "DASH!" or cards that appear partway through play. So we made it possible to write in a settings file called scenes.json how to call that effect, and the tool calls it and captures the screen. Even then, the game's own files are not changed.

Effects that vanish right away, like the "DASH!" text, are set to be captured 0.2 seconds after they appear, without waiting for the animation to finish. Functions sealed inside the game can be called from outside only during testing.

The tool can't measure overlaps for text drawn directly inside a canvas or 3D scene. The results page says so too, and we check those screenshots with our own eyes.

Sometimes the tool mistook things that weren't broken for broken layouts. It counted neighboring lines of multi-line text as an "overlap," or flagged the single letters of a logo, which are packed together on purpose. So on the same day we made it, we changed it to compare text line by line and to stop comparing a logo's single letters with each other.

Testing on an old version, and checking with our own eyes

To see whether the tool really works, we tried it on an old version of the game from before the fixes. The problems from October 11 showed up there as the "Add to Home" button spilling off in landscape, the card's "Start!" button that couldn't be seen without scrolling, the tutorial card's "Next" button, and the dash text spilling off. According to our records, the tool found all four.

Even so, we don't leave it all to the tool. After running it, we also look at the screenshots with our own eyes, so every check has two parts. Find problems before release instead of fixing them after. That's what this tool is for.

Featured in this article

All IKA LAB games

All IKA LAB games

You can play every game we check with this tool from our home page.

See all games

More articles

All articles