Clash royale clone
Clash Royale Clone ๐ฐโ๏ธ is a single-player strategy game built in Python with pygame, faithfully recreating the core loop of the mobile hit Clash Royale.
The Arena ๐ฟ The battlefield is an 800ร600 grass arena split into two halves by a river running across the middle ๐. The river is impassable except at two bridges — one on the left side and one on the right — forcing ground troops to funnel through chokepoints just like in the real game. Flying units (Minions) ignore this entirely and soar straight to their targets ๐ชฝ.
Towers ๐ผ Each side has three towers: two Princess Towers flanking the sides, and one King Tower in the center back ๐. Princess Towers are always active and will automatically shoot at any enemy that wanders into range. The King Tower starts dormant and only wakes up once one of your Princess Towers is destroyed — at which point it joins the fight with greater health and damage ๐ช. Destroy the enemy King Tower to win instantly โจ. If time runs out, the side with more towers standing wins ๐.
Cards & Elixir โก You have a rotating deck of 8 cards, with 4 in your hand at any time. Playing a card cycles the next one in automatically. Each card costs elixir — a resource that regenerates passively over time โณ. You start with 5 elixir, cap at 10, and must spend wisely ๐ง . With 60 seconds left on the clock, double elixir kicks in โกโก, doubling your regeneration rate and turning the endgame into a frantic final push ๐ฅ.
The 8 cards are:
- ๐ก๏ธ Knight — a sturdy melee fighter, great all-rounder
- ๐น Archers — a ranged pair, fragile but good at picking off air and ground
- ๐ฆ Giant — a massive tank that ignores troops and walks straight for buildings
- ๐ฃ Fireball — an instant area-damage spell, excellent for clearing clumps or chunking towers
- ๐ซ Musketeer — a long-range single-target shooter with solid damage
- ๐ Valkyrie — a melee splash fighter that spins and damages everything around her
- ๐ Minions — a trio of flying units that bypass the river and dive straight at targets
- โ๏ธ Mini P.E.K.K.A — slow to attack but hits like a truck
AI Opponent ๐ค The enemy AI manages its own elixir and deck, thinks every 0.8โ1.6 seconds, and adapts to what you're doing ๐. It detects when you're pushing hard down a lane and responds with defensive troops ๐ก๏ธ. When it has enough elixir, it launches its own Giant-led pushes ๐ฆโก๏ธ. It will also throw Fireballs at your troop clusters or at your towers when the opportunity arises ๐ฅ. It's not unbeatable, but it keeps steady pressure throughout the match ๐ค.
Combat โ๏ธ Ranged units fire projectiles that travel to their target in real time ๐ฏ. Melee units close the distance and swing on a cooldown โฑ๏ธ. Splash units like Valkyrie and Fireball damage everything in a radius simultaneously ๐ฅ. Units prioritise attacking enemy troops first, then fall back to targeting towers ๐ผ. Giants are the exception — they always go for buildings ๐๏ธ. Towers auto-target the nearest enemy in range and fire projectiles of their own ๐.
How to Play ๐ฎ Click a card in the bottom panel to select it, then click anywhere on your half of the arena to place it ๐ฑ๏ธ. Spells like Fireball can be placed anywhere on the map ๐บ๏ธ. Press ESC to cancel a selection ๐ซ, and R to restart after a match ends ๐. Good luck — and may your elixir always be full! ๐
| Published | 4 days ago |
| Status | Released |
| Platforms | HTML5 |
| Author | CodeRabbit-Byte |
| Genre | Card Game, Strategy |
| Tags | ai-opponent, clash-royale, indie-game, pygame, python, Real-Time, Singleplayer, Tower Defense |
| AI Disclosure | AI Assisted, Code, Graphics |

Leave a comment
Log in with itch.io to leave a comment.