Build a game like Clash Royale with Claude Code

A real-time card battle strategy game: deck of unit cards, elixir that refills, two-lane arena with towers and more.

Big buildPayments, real-time, regulation or heavy infrastructure

The Claude Code prompt

Build an original browser game in the same genre as Clash Royale: a real-time card battle strategy game. Use your own name, characters, art, sound and levels. Only the general mechanics should feel familiar; do not copy Clash Royale's name, characters, art, music or level layouts.

Version one should have:
- Deck of unit cards
- Elixir that refills
- Two-lane arena with towers
- Real-time online matches
- Trophies

The hard part: Real-time multiplayer and balance. Start against an AI opponent.

How to build it:
1. Read this folder first. If it is empty, set up a browser game with Vite, TypeScript and Phaser (or Three.js if it is 3D). Write a short PLAN.md with the game loop, entities, controls and what you are leaving out of version one.
2. Get the core loop playable before anything else: deck of unit cards. Use simple shapes or free placeholder art until it feels good.
3. Add the rest of the mechanics one at a time, keep game rules in pure functions you can unit test, and make it work with both keyboard and touch.
4. Add a start screen, game over, score and a saved best score in localStorage, plus sound effects you generate or that are free to use.
5. Run it, play it, tune the difficulty, fix what breaks, and finish with a summary and how to deploy it as a static site.

Paste it into Claude Code in an empty folder. It plans first, so read PLAN.md and steer before it starts building.

Version one

  • Deck of unit cards
  • Elixir that refills
  • Two-lane arena with towers
  • Real-time online matches
  • Trophies

The hard part

Real-time multiplayer and balance. Start against an AI opponent.

Make it yours: original name, characters, art and levels. Familiar mechanics are fine; Clash Royale's assets are not.

More to build

More in Games · Every build idea