Skip to content
GUIDES#TWA Android

How I Built a Complete Fighting Game with Claude Code and Published It to the App Store

I built a complete satirical fighting game with 12 characters, a story mode, online multiplayer, and a global leaderboard using nothing but conversations with Claude Code. Here is exactly how it got from zero to the App Store, step by step.

Yaakov Tzedek
Yaakov Tzedek · AI expert·9 min read
Pixel-art style illustration: two fighters in a retro fighting game against the backdrop of a government building dome, next to a phone running the game
THE BOTTOM LINE
  • The game is built as a website: plain JavaScript on Canvas, with no game engine or framework.
  • A complete engine was written through conversations with Claude Code: fighters, AI for the computer opponent, online multiplayer, global ELO ranking.
  • Android: a TWA (Trusted Web Activity) wrapper of about 450KB, built manually with Gradle, no Android Studio.
DID YOU KNOW?

The Android app for the game weighs just about 450KB, less than a single selfie. That is the whole magic of a TWA wrapper: the app is a thin shell, and the game itself lives on the website and updates without touching the store.

A few weeks ago I sat down with a crazy idea: a street-fighting game in the style of the nineties classics, where the fighters are satirical characters from Israeli politics. Today that game, "The Road to the Knesset," sits in Apple's App Store, runs in every phone's browser, and even has a global leaderboard. The entire journey, from the first line of code to hitting "publish" in the store, happened through conversations with Claude Code. No game engine, no Android Studio, no Mac with Xcode open all day.

This is the detailed guide to the whole process, including the code, the decisions, the crash along the way, and how we debugged it.

The game itself: The Road to the Knesset on the Apple App Store · Play in the browser

In short

  • The game is built as a website: plain JavaScript on Canvas, with no game engine or framework.
  • A complete engine was written through conversations with Claude Code: fighters, AI for the computer opponent, online multiplayer, global ELO ranking.
  • Android: a TWA (Trusted Web Activity) wrapper of about 450KB, built manually with Gradle, no Android Studio.
  • iPhone: an app that packages the full game, passed Apple's review and was published on the App Store.
  • Updating content in the game requires no new store version: push to the site, and all users get it immediately.

Step 1: Why build a game as a website?

The most important architectural decision in the project was made on day one: the game is a website. Not a Unity project, not Godot, not React Native. A single HTML file that loads JavaScript modules and draws everything on Canvas.

The reasons, in hindsight, turned out to be right one by one:

  1. Iterations in seconds. Every change Claude Code makes is tested immediately in the browser. No compilation, no waiting for a build.
  2. One platform, every device. The same code runs on desktop, Android and iPhone. The only difference is the wrapper.
  3. Updates without the store. When the game lives on a website, a bug fix reaches all players the moment it goes up to the server. No "waiting for version approval."
  4. AI writes excellent JavaScript. Code models have seen more JavaScript than any other language. When working with Claude Code, choosing the language it is strongest in is a built-in advantage.

Step 2: A complete game engine, one module at a time

People imagine "AI building a game" as a single command that spits out a game. In reality it is an orderly engineering project, built layer by layer across conversations. Here is what the final engine structure looks like, roughly 20 modules of plain JavaScript:

ModuleRole
pixel.js, sprites.js, render.jsDrawing characters and arenas on Canvas in pixel-art style
fighter.js, projectile.jsCombat physics: punches, jumps, signature moves, hits
ai.jsThe computer opponent: approaching, timing attacks, difficulty levels
game.js, backdrop.jsGame loop, stages and arenas
input.js, touch.jsKeyboard on desktop, touch buttons on mobile
net.jsReal-time online multiplayer (P2P with PeerJS)
rank.jsGlobal leaderboard using the ELO system, no registration required
audio.js, music.jsSound effects and music
save.js, i18n.jsLocal progress saving, multi-language support

Three things I learned about working with Claude Code on a project of this scale:

  1. Demand modular separation from day one. One giant file makes every change dangerous. When each domain lives in its own file, you can ask "fix the boss AI in stage 5" without worrying that the multiplayer will break.
  2. Test every feature the moment it is built. Don't stack up ten features and then test. Play after every change. A bug caught immediately is fixed in a minute; a bug caught a week later requires excavation.
  3. Multiplayer was the genuinely hard part. Local combat against the computer is an evening project. Syncing two remote players, with P2P connections, private rooms with a code, and a global leaderboard, that is the part that required the most patience and iterations.

The result: 12 fighters with signature moves, a story mode with seven stages and bosses, battles against a friend or against the computer, online play against a random opponent, survival mode and training mode. And everything works offline too.

Step 3: From website to Android app, without Android Studio

This is the part that surprised me most: we built the entire Android app from a cloud workspace, without opening Android Studio even once.

The choice: TWA (Trusted Web Activity)

Instead of bundling the game files inside the app, we went with TWA, Google's official wrapper (the androidbrowserhelper library). The app is a thin shell of about 450KB that opens the live website full-screen, with no browser bar. The decisive advantage: every update pushed to the site reaches the app immediately, with no new store version.

Setting up the build environment

The cloud environment had Java and Gradle, and you download the Android SDK directly from Google as command-line tools. That is all you need. Android Studio is a convenience, not a requirement.

Writing the Android project by hand

We did not run any wizard. Claude Code wrote the files itself, because they are small and straightforward:

  • build.gradle: the app identifier (com.littleknesset), version numbers, and a single dependency: androidbrowserhelper.
  • AndroidManifest.xml: a declaration of a splash screen pointing to the game's URL, and locking the screen to landscape.
  • Icons: generated from the game's icon with a small Python script that produces all five required resolutions.

The signing key: the file you must never lose

A signing keystore was created that identifies me as the publisher. I saved it in two secure locations, because without it you can never update the app. If there is one thing to take from this guide: back up your signing key today.

Linking the domain to the app

The magic that hides the address bar: a file called assetlinks.json that lives on the site under /.well-known/, containing the SHA-256 fingerprint of the signing key. This is what proves to Android that the website and the app belong to the same owner:

[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target": {
    "namespace": "android_app",
    "package_name": "com.littleknesset",
    "sha256_cert_fingerprints": ["38:91:E0:38:..."]
  }
}]

The build: one command

Gradle downloads dependencies, compiles, packages and signs with the key, all in a single build command. The result: an APK file ready to install and an AAB file ready to upload to Google Play.

The crash, and the debugging that solved it

The first version crashed on launch. The cause: an incompatible combination of library versions. The debugging was a lesson in itself: we decompiled the APK, compared every function call in the compiled code against the library that was actually packaged, and found three functions that the code called that simply did not exist in the version that was bundled. We switched to a stable, proven version pair and ran the same check again until we reached zero missing entries.

This lesson is worth its weight in gold for anyone building apps with AI: when something crashes, don't guess. Decompile, compare, find the exact gap. A real test beats a good hypothesis.

Step 4: The Apple App Store

Apple is a different story. The App Store guidelines do not accept a thin wrapper that just opens a website, so the iPhone version is built differently: it packages the full game inside the app itself. That is why it weighs about 88MB compared to 450KB on Android, and it is also why it works perfectly offline.

The process with Apple involves several checkpoints every independent developer needs to know:

  1. Apple Developer account (99 dollars per year), with identity verification.
  2. App Store Connect: creating the app, filling in the store page, screenshots, description, keywords and a privacy policy.
  3. Age and content rating: a satirical fighting game requires transparency. The game was rated 9+ and the description explicitly states: the content is satirical and fictional, and is not associated with, funded by or endorsed by any political party, member of Knesset or government body.
  4. Apple review: submission and waiting. The review checks stability, content and compliance with guidelines.

On August 26, 2026 the app was approved and published. Free, no ads, no in-app purchases:

The Road to the Knesset: Satirical Fighting Game, on the Apple App Store ←

The Android version was uploaded to the Google Play Console and is in the process of being published (Google requires new developers to complete a closed testing period before public release). In the meantime, Android users play directly in the browser, which is precisely the beauty of the website architecture: nobody is waiting on a store.

Updates: the part that makes the architecture a winner

Here is what maintaining the game looks like today:

  • A change to the game itself (new character, move balance, bug fix): push to the site. That is it. All players, in the browser and in the apps, get the update immediately.
  • A change to the wrapper (icon, name, permissions): bump the version number, run the build command, upload to the store. This happens rarely.

In the projects I work on with organizations, I see teams maintaining three separate versions of the same product: web, Android and iPhone. This architecture, one website with thin wrappers, eliminates most of that pain for the majority of app types.

What does this mean for your business?

This game is an entertaining demo, but the principle is completely serious: the distance between an idea and a product in the app stores has shrunk dramatically. What used to require a development team, a budget of hundreds of thousands of shekels and months of work can be built today through conversations with Claude Code by a single person who knows how to manage the process.

That does not mean there is no work. There is plenty: defining requirements precisely, uncompromising testing after every step, systematic debugging when something breaks, and understanding the processes involved with each store. But it is the work of project management and requirements engineering, not writing code line by line. For anyone who wants to acquire this skill in a structured way, that is exactly what we teach in the Claude Code workshop for organizations, working on participants' real projects.

Frequently Asked Questions

How long did the whole project take? The game was built across a series of work sessions over a short period, in parallel with my regular work. Most of the time went into polish: balancing the combat, the multiplayer, and the app store submission processes.

Which game engine did you use? None. Plain JavaScript on the browser Canvas, with an engine written specifically for the game: pixel-art rendering, physics, AI, networking, and leaderboards.

How does multiplayer work without a game server? Through a direct P2P connection between players (using the PeerJS library). The server only introduces opponents to each other; the actual match runs directly between the two phones. Private rooms with a code work the same way.

Can you use the same process for a business app, not just a game? Absolutely, and the process is even simpler: most business apps are forms, lists, and content, with no real-time combat physics. A website wrapped in TWA is a very fast path to the app stores with a business product.

The Bottom Line

"The Road to the Knesset" started as a joke and ended up as a live product in the Apple App Store. The path ran through four stops that anyone can replicate: a game as a Canvas website, an engine built module by module with Claude Code, a 450 KB TWA wrapper for Android built without Android Studio, and a packaged app that passed Apple's review.

Want to try it? Play the game in your browser, download it from the App Store, and if you want to build products this way in your organization, get in touch.

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →