Dumb Game Lab

Blog · Behind the scenes

Dev log · a detour

I hid the HUD and the score went to 1.0

Justin Lee, Dumb Game Lab ·

Three Zombie Bus battle screens. Wave, time and zombie count sit at the top, survivors stand on the roofs of two buses near the bottom of the road, and a row of Gamble, Summon, Mythic and Upgrade buttons runs along the very bottom

On November 6, while rebuilding the Zombie Bus battle screen, I ran a blind test more than ten times on the same fixed set of 10 screenshots. Lower is better and the pass line is 0.55, yet the score stayed near 0.9 the whole time. Reverting the grid layout still gave 0.716, and hiding the HUD entirely gave 1.000. All that proved was that the HUD has to be there, whatever its shape. I only found the culprit after cutting the screen into top, middle and bottom zones and scoring each one.

Lower is better, and the pass line is 0.55

Zombie Bus was being built along two tracks. The battle board used the old Zombie Bus layout, with survivors placed on the roofs of buses at the bottom while zombie hordes come down from the top, and the HUD followed the frame of the reference app.

I measure whether it looks right with a blind test. The judge sees screenshots from the reference app mixed with ours and has to pick which one is ours. The hit rate is the spot score. A score of 0.5 means the judge is guessing and 1.0 means we get caught every single time, so lower is better, and passing means scoring 0.55 or below twice in a row.

One Zombie Bus battle screen. Wave 8 and zombies 53/100 are shown at the top with a Summon button at the bottom
Our screen as it went to the judge. The top strip and the bottom button rows are the HUD.

Ten-plus runs on the same 10 screenshots, all near 0.9

I built the old board as it was to get a baseline and got 0.535, and a second run went as low as 0.399. The new board started at 0.962. Same judge, same fixed 10 screenshots, so the numbers can be compared directly.

Switching the grid to 4 columns by 7 rows and making the bodies bigger gave 0.913. Brightening the bus slots gave 0.899, and turning off MSAA and cutting shadows for phone performance pushed it up to 0.990. Pre-spawning 60 zombies to make the scene denser still gave 0.934, adding damage numbers and a red warning strip gave 0.931, and attaching the Mythic and Roulette button row gave 0.868.

It took about three rounds of changes to move the score by roughly 0.05. All I learned was that the scene itself was off the hook. Where the real problem was, I still had no idea.

Turning off MSAA was one culprit, but only one

I turned off just MSAA on the old board and scored it again: 0.399 rose to 0.569. That is over the pass line, so I had caught one culprit. A setting I had switched off to make the game run on phones was raising the score.

Even so, the new board scored 0.694 with MSAA turned back on and 0.729 with the full shipping settings, which meant there had to be more than one culprit. The bodies and zombie models were the same files as on the old board, so there was nothing to change there either.

Testspot score
Old board, measured again0.399
Old board + MSAA off0.569
New board, shipping settings0.729
New board, grid layout reverted only0.716
New board, entire HUD hidden1.000
New board, old HUD placed on top at 1.5x0.924

Hiding the HUD gave 1.000

I hid the whole HUD and ran the test. The result was 1.000. The judge picked ours correctly in all ten pairs, which means any screen gave us away at a glance.

Seeing that, I placed the old HUD (the wave panel along the top and the thick button rows at the bottom) over the new board at 1.5x and got 0.924. That was actually worse than the HUD we had. Without a HUD we got caught immediately, yet swapping its shape for the old one did nothing for the score. The HUD only had to exist, and its shape was never the problem.

The code I wrote to port the old HUD stayed out of the repo and was archived separately. I did not want to leave unused code lying around.

Bottom of a Zombie Bus battle screen. One row of Gamble, Summon and Mythic buttons and one row of Upgrade, X2 ad and ping buttons
What held the score up was whether these button rows were there at all. Their shape did not matter.

Only after slicing the screen into top, middle and bottom did the location show up

I went through 156 judge notes on the new board and counted the reasons: clumping and overlap 139, units too small 123, UI too plain 99, road looks empty 71, outline noise 57. The reasons were scattered in every direction. In 36 notes on the old board, plain UI came up only 10 times and outlines 6, so the new board drew several times more UI and outline complaints.

When the reasons scatter like that it is hard to decide where to start, so I cut the screen by height into 0 to 30%, 30 to 72% and 72 to 100% and had each zone judged on its own. The top scored 0.65, the middle 0.15 and the bottom 0.50. The middle was already indistinguishable, which made the top zone the culprit, and since the bottom sat near the pass line, the fix order started from the top.

The top zone holds the zombie horde and the wave panel. I split each zombie's clothing and skin tone into 8 variations to break up what had read as one green blob, moved the wave, time and zombie count panel to the very top, and made the warning banner thinner. The overall score came in at 0.455 and 0.507, under the 0.55 pass line twice in a row.

Change the reference scenes and it failed again

After the pass I pulled 10 new scenes from the reference app where zombie hordes were packed in tight and set a new baseline. I wanted to check whether the earlier fixed 10 had just been quiet scenes.

The result was 0.979 and 0.826, a fail. By zone it was top 0.525, middle 0.113, bottom 1.000, so this time the bottom HUD was the culprit. The judge's top reasons were that the road surface looked dull and blotchy, the button colors clashed with the background, the Upgrade button text was faint, and the Mythic button text was hidden behind its icon.

The reference app plays on a grassy map with a green background, while we had put the same palette UI on top of an asphalt road. The two simply did not belong together.

Zombie Bus lobby screen. A survivor recruitment window, a world map and a tab bar at the bottom
Screens outside battle never went to this judge. Only battle screens were scored.

Every label had shrunk to 18 pixels

Digging into the bottom HUD text, I found that in the scene generated by the converter, the Upgrade label had been squeezed down to 18 pixels to fit a text box with zero width, and the white text outline was weak for its size. I set the text height standard and the outline in one place (UiKit.polish) and built a readability checker, and the violation count went from 94 to 0. Then I made the outline navy and thicker, at 40% of the font size (#5975, #5979).

That day did not end with the score passing again. The score is still a fail, and that day's notes stop at the bottom HUD being the culprit zone. What more than ten rounds of measuring taught me was where not to make changes, and which zone to look at.

FAQ

What is a game HUD?

It is the layer of information that stays on top of the screen during battle or play. Health, score, wave, time and buttons like Summon or Upgrade all live there.

Doesn't a game look cleaner without the HUD?

In our measurements it was the opposite. When I hid the entire HUD, the blind test judge picked out our screen in all ten pairs (spot 1.000). The HUD has to be in place for the screen to look like the reference. Removing it did not make anything cleaner.

How do you find the cause when a screenshot comparison score won't go down?

What worked was cutting the screen by height into top, middle and bottom and having each zone judged separately. The culprit zone that a single overall score had hidden showed up right away.

Why does text in a mobile game HUD look blurry?

In our case the text had been scaled to fit its text box and shrunk to 18 pixels, and the outline was weak for that size. I fixed it by setting the text height and outline ratio in one place and counting violations with a checker tool.

More from the blog

New games and small updates, about once a month.

Read inEnglish한국어日本語繁體中文