Blog

Notes from
the studio.

Game updates, what goes on behind them, and the occasional technical write-up — from the person building them.

RSS feed

·11 min read

Capacitor splash screen twice on Android 12

Android 12+ always draws an icon splash, and @capacitor/splash-screen holds it until hide(). How I got a Capacitor game down to one splash.

capacitorandroidgamedev
Read
·9 min read

Capacitor app slow on iPhone: a 2 s freeze

My Capacitor game's home screen froze on iPhone each time a player came back to it. An unlock check that grew with progress, and 100 hidden carousel panels.

capacitorperformancejavascripttesting
Read
·8 min read

WKWebView crash out of memory: 100 images

Opening my game's card collection killed the app with no JavaScript error. The viewer drew all 100 full-size images at once. What I measured, and what not.

capacitorgamedevimagestesting
Read
·10 min read

Claude Code mobile app testing: a screen map

Claude Code re-read my game's code before every device test. A generated screen map took a fresh agent from one sentence to a passing test in three minutes.

claude-codeaitestingcapacitor
Read
·10 min read

Pixel diff visual regression for a refactor

I moved a live game's controls onto a new UI kit and had to prove nothing looked different. A pixel diff was useless until I ran it against itself first.

testingjavascriptaccessibilitygamedev
Read
·10 min read

ANDROID_ID after reinstall: a per-install id

I keyed a coin ledger by a random id, then by ANDROID_ID. A backup broke the first and a reinstall broke the second. What I use now, and how I checked it.

androidcapacitorgamedevtesting
Read
·9 min read

Same game difficulty on different screen sizes

In Echo Bat a tablet saw further ahead than a phone, and my test bot scored half again as much. A fixed design frame gives every screen the same view ahead.

gamedevdifficultyandroidtesting
Read
·10 min read

Canvas hit test that ignores transparent pixels

Tap one sticker, a different one moves. My canvas hit test used an oval, not the art. A 64×64 alpha mask per sprite fixed overlapping picks.

gamedevjavascripttestingcapacitor
Read
·8 min read

Daily puzzle seed from date: a 35-day repeat

My daily challenge hashed the date to pick one of 365 puzzles. In 2026 it played 277 of them and repeated one after 35 days. The fix, and what switching cost.

gamedevpuzzletestingjavascript
Read
·10 min read

Game juice in React: sequencing animations

My puzzle's lift, landing and row celebration kept overlapping. Chaining every beat as a promise fixed it, and frame timings showed what it cost.

gamedevreactjavascriptdesign
Read
·10 min read

getBoundingClientRect wrong after CSS scale

I scaled every screen of my game with CSS transform scale. Two measurements inside it went wrong: a grid lost a column, and a drag lagged the finger.

cssjavascriptwebgamedev
Read
·9 min read

Transparent PNGs broke my perceptual hash

My image pipeline threw away new transparent sprite sheets as duplicates. The perceptual hash read RGB and ignored alpha, so every sheet looked the same.

gamedevspritesimagestesting
Read
·8 min read

Web audio unlock on mobile stops sounds

My game's mobile audio unlock ran on every tap and paused whatever was playing. The fix, the tests, and the counter that missed the bug the first time.

gamedevcapacitorandroidjavascript
Read
·8 min read

Phaser tree shaking vs PixiJS bundle size

Four Vite builds. Phaser 4.2.1 came out at 344 KB gzipped whether I imported one math helper or a whole game. PixiJS 8.22.0 trimmed.

gamedevvitejavascriptcapacitor
Read
·8 min read

A Claude Code subagent killed my Chrome

A Claude Code subagent closed my browser with one pkill line while testing a Tauri app, and Chrome was the wrong engine for that test anyway.

claude-codeaitestingworkflow
Read
·8 min read

Tauri macOS codesign: code has no resources

My Tauri app had no icon and failed codesign -v with "code has no resources but signature indicates they must be present". The icon fixed only the icon.

taurimacosreleaserust
Read
·8 min read

No ViewController: AdMob consent form on iOS

In @capacitor-community/admob 8.1.0 the iOS consent form failed with "No ViewController" until initialize() ran. The cause, the fix, and the upgrade.

admobcapacitorprivacyfirebase
Read
·8 min read

Play Console added 20% VAT to my in-app prices

I set six one-time products at €0.99 to €9.99. A license-tester purchase showed €1.19 to €11.99. The Play Console price was treated as before VAT.

google-playandroidfree-to-playtesting
Read
·12 min read

Crossword intersections: grid, bends or curves

My crossword generator gave one crossing per word. I measured grid, bent and curved words over 1,000 levels; curves took it from 3.96 to 5.66 per board.

gamedevpuzzlelevel-designprocedural-generation
Read
·15 min read

Kling AI video to a looping sprite sheet

Turning Kling AI videos into Echo Bat's wingbeats meant painting out blinks the prompt forbade, cutting pink spill from 14% to 0.2%, and splicing beats.

gamedevaisprites
Read
·10 min read

Why my sprite animation flickered

Two bats in my game flickered. Four patches missed. Measuring every art pipeline step against the source video found a lossy WebP step far worse than the rest.

gamedevspritesimagesperformance
Read
·13 min read

Tuning an endless runner difficulty curve

My Echo Bat test bot had a median of 52 points. Changing only the cave's rules, never the bot, took it to 1,757 and its best run to 4,608.

gamedevdifficultytestinglevel-design
Read
·11 min read

Move limits without unsolvable levels

In a swap puzzle the move limit is the only way a level can become unsolvable. How head starts give every deal a swap count known before it is played.

gamedevpuzzledifficultylevel-design
Read
·11 min read

Tuning a sonar mechanic with simulated players

In Echo Bat every rock was seen before it killed you, so the dark did nothing. Simulated players measured it, and three changes made darkness matter.

gamedevtestingdifficultydesign
Read
·12 min read

Canvas pinch zoom lag in a Capacitor WebView

Pinch-zoom on my game's canvas ran at 3 fps on an Android emulator. A canvas size budget, baked shadows and dirty patches took it to 60.

gamedevcapacitorandroidperformance
Read
·10 min read

Capacitor AdMob interstitial resolves too early

My Capacitor game dealt the next level behind the interstitial, because the plugin's show call resolves when the ad appears, not when it closes.

admobcapacitorandroidgamedev
Read
·11 min read

Capacitor local notifications not working

My Capacitor game's reminders never showed on Android 14+. An exact-alarm default, a toggle the OS stopped answering, my own quiet hours, a missing channel.

capacitorandroidgamedevtesting
Read
·10 min read

Capacitor iOS game lag was HTML audio play()

My Capacitor game stuttered on a fast iPhone through three rounds of real fixes. The cause was <audio>.play() blocking the WebView for up to half a second.

gamedevcapacitoriosperformance
Read
·8 min read

Capacitor AdMob banner disappears after refresh

In a long session my AdMob banner vanished for good. The Capacitor plugin destroys it when a refresh fails, and my wrapper never noticed. Proven on a device.

capacitoradmobandroidtesting
Read
·8 min read

R8 broke Capacitor permissions in release

R8 removed a method Google's consent SDK looks up by name and broke Capacitor's permission requests. Only the store build failed; my tests ran a debuggable one.

capacitorandroidr8testing
Read
·10 min read

HsdpShimActivity: targetPackageName is null

A Crashlytics crash inside Google's hsdp library, reproduced on an emulator and fixed by forcing hsdp 2.2.0. Three more like it point to a tester.

androidadmobcapacitorgradle
Read
·10 min read

Canvas ctx.filter is slow in Android WebView

Echo Bat fell to 8 fps in an Android WebView. ctx.filter cost 110–190 ms a layer, and the getImageData readback I swapped in cost more.

gamedevcapacitorandroidperformance
Read
·7 min read

Real AdMob ads not showing after publishing?

I flagged initializeForTesting as a silent zero-revenue bug in my Capacitor game, then unzipped the release AAB to see what it really ships. The plugin source says the flag was probably harmless.

admobcapacitorandroidrelease
Read
·11 min read

Is my playtest bot cheating? How I tested it

My Echo Bat test bot had to win using only what a player can see. I moved the rocks it should not see, then gave it human limits. Its median fell from 95 to 45.

gamedevtestingdifficultyai
Read
·10 min read

Claude Code bug hunts: subagent or session?

Parallel Claude Code subagents hunted bugs in two of my games while their test suites were green. What they found, the regressions their own fixes caused, and what verification threw out.

claude-codeaitestingworkflow
Read
·8 min read

AdMob Next-Gen SDK takes the app ID in code

I moved a Capacitor game to Google's Next-Gen ads SDK. All twelve device tests passed and not one ad was served, because the new SDK no longer gets its app ID from the manifest.

admobcapacitorandroidtesting
Read
·10 min read

Claude Code AGENTS.md: when the rules pile up

I let Claude Code agents run a side project for a week, adding a rule after every mistake. Then development stopped. Half the commits on main were rules, and one rule had hidden finished work for four days.

aiclaude-codecontext-engineeringworkflow
Read
·11 min read

Firebase Analytics in Capacitor sent nothing

My Capacitor game had Firebase Analytics, Crashlytics and Performance wired in, and collected nothing. Four separate failures, none of which printed an error.

capacitorfirebaseandroidgamedev
Read
·12 min read

Sprite sheet texture atlas: 10.1 MB to 2.7 MB

Packing a 24-frame bat animation for a canvas 2D game in a Capacitor WebView. Trim, dice into strips, a one-pixel bleed, and every frame rebuilt exactly, in a quarter of the memory. Plus the lossy WebP step I should have measured first.

gamedevcapacitorperformanceimages
Read
·10 min read

How to separate sprites from AI sprite sheets

An image model drew 495 game icons as 4×4 sprite sheets with soft shadows. A grid cut broke them. Cutting by the sheet's own alpha, and asking for wider gaps, did not.

gamedevaisprites
Read
·9 min read

My AdMob ad covered the game on WebView 133

A bottom banner sat 24 dp too high and covered two game buttons, but only where Android System WebView was older than 140. Capacitor 8 and AdMob plugin 8.1 each made room for the navigation bar, and the fix was one version bump, measured to the pixel.

capacitorandroidadmobgamedev
Read
·11 min read

CSS z-index not working with position: fixed

A popup under other elements, a label under its neighbours, zoom buttons over a popup. The z-index values were right every time. I broke the layering four ways and 1,404 tests stayed green.

csswebtestinggamedev
Read
·10 min read

Google Play data safety form: AdMob + Firebase

How I filled in the Google Play Data safety form for a word game that ships AdMob, Firebase Analytics and Crashlytics, Play Billing and Play Games, from the build's own SDK list, with the reason behind each tick.

google-playprivacyadmobandroid
Read
·9 min read

AdMob no ads to show: publish a consent message

I swapped Google's sample AdMob app ID for the real one in a Capacitor game and no ad was requested at all. The consent check failed until I published a message in Privacy & messaging. Then, how I forced a no-fill on an emulator to test what shows instead.

admobcapacitorandroidprivacy
Read
·9 min read

Google Play privacy policy URL, wrong game

Two of my games went live on Google Play with privacy policies written for builds that never shipped. How I audited every section against the shipped code, and fixed them without moving the URL.

google-playprivacyclaude-coderelease
Read
·9 min read

Git stash lost changes: two Claude sessions

Two Claude Code sessions shared one working tree, and git stash took files from both. How I got the lost changes back out of the object store, and the rules that stopped it happening again.

gitclaude-codeaiworkflow
Read
·10 min read

How to make Android emulator faster on a Mac

My Pixel 9 Pro emulator went from 3 fps to about 50 on a Mac with a cold boot, a smaller screen and Docker switched off. The same habits fixed most of my flaky device tests. One failure is still unexplained.

androidtestingcapacitorgamedev
Read
·8 min read

Android lock orientation: landscape or portrait

Locking a Capacitor game to portrait in code instead of with screenOrientation, the adb rotation that never rotated, and the Android 16 tablets that ignore the lock anyway.

capacitorandroidgamedevtesting
Read
·9 min read

What causes merge conflicts git can't see

Two PRs passed CI, GitHub called the merge clean, and the merged code did not compile. The conflicts git reports, and two real cases of the kind it cannot.

gitci-cdtestingclaude-code
Read
·5 min read

What AdMob Unity mediation adapter status means

Three mediation adapters showed up NotReady in a project with no mediation installed. I installed one for real to find out which field actually tells you anything.

unityandroidadmobgamedev
Read
·4 min read

Unity IL2CPP vs Mono on Android, measured

Same project, both scripting backends, Unity 6. IL2CPP came out 47% smaller and took twice as long to build — and the Mono APK would not install on the test device at all.

unityandroidil2cppgamedev
Read
·11 min read

ask-first: questions in a card, not a paragraph

A free Claude Code plugin that moves every question out of prose and into a card — one question at a time, with a recommended answer. Here is why I built it, how it works, and how to install it.

claude-codeaiworkflowcode
Read
·4 min read

AdMob Unity test IDs, and two error codes

I loaded the three AdMob test units in a real Unity build, then broke the ad unit ID two ways. The failures look nothing alike, and one gets mistaken for no fill.

unityandroidadmobgamedev
Read
·5 min read

Unity 6 Android build errors that exit 0

Four times last week a headless Unity 6 Android build told me it had succeeded when it had not. Every one returned exit code 0, which is the only thing CI reads.

unityandroidci-cdgradlegamedev
Read
·8 min read

The AdMob Unity SDK check that stops nothing

The Google Mobile Ads plugin says it will not build without an App ID. I left the field empty and got an APK anyway — one that dies before the first frame.

unityandroidadmobgamedev
Read
·6 min read

AdMob limited ad serving on the wrong app

I created a second AdMob app for a game that already had one. The listing link went to the empty app, the app I was shipping got limited ad serving, and only one of them could be fixed without a release.

google-playadmobandroidrelease
Read
·11 min read

Four things break when CI posts to LinkedIn

The LinkedIn API call that publishes a post is six lines. The token that expires every 60 days with no refresh, the read scope you cannot have, and a filename that became a dead link took the rest of the afternoon.

ci-cdgithub-actionslinkedin
Read
·9 min read

Gradle build failed is not the error

Unity prints CommandInvokationFailure, then 67 environment variables. The line saying what broke is 235 lines up. Four failures I reproduced in Unity 6000.4.

unityandroidgradlegamedev
Read
·7 min read

One engine, many games

Six word puzzles built as six copies of one game. What it cost, and what an app directory looks like once the game moves out of it and only identity stays behind.

gamedevarchitecturemonorepocapacitor
Read
·7 min read

Generate levels offline, not at runtime

Runtime generation promises infinite levels for free. What it gives you is levels nobody has checked. The offline pipeline I use instead.

gamedevprocedural-generationpuzzlearchitecture
Read
·7 min read

Rating puzzle difficulty by decisions

Grid size is the obvious difficulty proxy and it is wrong. Measuring the branching factor of the solve gives a rating that survives contact with players.

gamedevdifficultypuzzleprocedural-generationgist
Read
·7 min read

Difficulty rates a stage, progression places it

Sorting a level library easiest-to-hardest gives a campaign that is flat for a hundred stages and then a wall. What replaced the sort.

gamedevdifficultylevel-designpuzzlegist
Read
·7 min read

The opening layout is part of the puzzle

Where the loose pieces sit is a packing problem, and its objective is how large the board can be drawn. Optimise that and you leak the answer.

gamedevpuzzlelevel-design
Read
·5 min read

Shipping a 4 MB level pack

392 levels of JSON, pretty-printed for review and minified for the store. The Vite plugin that does it, and the hook choice that hid a real error.

gamedevcapacitorviteperformancegist
Read
·5 min read

Testing a level pack you did not write

Unit-testing the game does not tell you whether the 392 levels in this build are solvable. So the suite plays every one of them.

testinggamedevpuzzlearchitecturegist
Read
·5 min read

Pricing an economy off its difficulty model

Levels differ 13x in the thinking they demand, so a flat coin reward is wrong on nearly all of them. Tying payouts to the difficulty walk.

gamedevgame-economyfree-to-playdifficultygist
Read
·7 min read

Cutting a Capacitor Android build in half

13.1 MB down to 5.9 MB delivered. R8 is off in the project Capacitor generates, and one library's consumer ProGuard rule was pinning 9,304 classes.

gamedevcapacitorandroidapkr8gist
Read
·6 min read

A release pipeline you cannot forget

The Android project is generated, not committed — which reset the version code to 1 and nearly made the app un-updatable. Plus the checks worth failing on.

gamedevcapacitorandroidreleasegradle
Read
·4 min read

Cloudflare injects a beacon. My CSP said no.

A CSP error in production, from a script I never added. The usual fix is to allow the host — which would have made my privacy policy false.

cloudflaresecurityprivacyperformancegist
Read
·4 min read

Lighthouse's image budget is w × h ÷ 6

Improve image delivery" makes two complaints in one panel. Both have exact arithmetic behind them, readable straight out of the JSON report.

performancelighthouseimageswebgist
Read
·4 min read

opacity 0 does not hide anything

My lightbox was invisible and still in the tab order. Fixing that broke focus handling silently, because focus() on a hidden element reports nothing.

accessibilitycssjavascriptwebgist
Read
·4 min read

The check that passed while broken

Two checks in my build were green for months while testing nothing. One was switched off by a guard clause, the other by a missing space in a regex.

ci-cdtestingworkflowaigist
Read
·6 min read

Changing a Google Play privacy policy URL

Five live listings pointed at my old Blogger URLs. How I moved them without ever serving a broken privacy policy link.

google-playprivacyhostingseo
Read
·8 min read

The blast radius rule for AI coding

How I decide what an AI agent may change on its own — sorted by what a mistake costs to undo, not by how hard the task is. Three zones, and the check for each.

aiclaude-codeworkflowgoogle-play
Read
·6 min read

I don't review AI code. My build does.

Reading every diff at generation speed isn't review, it's skimming. Here is the 169-line verifier that gates this site, and the bug behind every check in it.

aiclaude-codeci-cdworkflowgist
Read
·7 min read

I stopped writing prompts. I write the repo.

The best prompt I ever wrote was a README. What changed when I moved my conventions out of the chat window and into the files they describe.

aiclaude-codecontext-engineeringworkflow
Read
·7 min read

Deploying a static site to Cloudflare Workers

A build-verify-deploy pipeline on Cloudflare's free tier, and the five traps that cost me an evening — including one that silently takes your staging URL offline.

cloudflareci-cdgithub-actionshostinggist
Read