make a bloons tower defense 6 exact clone but with ducks
- User
make a bloons tower defense 6 exact clone but with ducks
Assistant
make a bloons tower defense 6 exact clone but with ducks
I am going to check the files in the project workspace to understand its current structure and configuration.
I am going to read package.json to check which dependencies and icon libraries (like lucide-react) are already installed.
I will install lucide-react for UI icons and canvas-confetti (with its types) for victory celebrations when beating maps or boss waves.
I will read src/index.css to check the current Tailwind CSS setup.
I will read index.html to review the title and font imports.
I am going to edit index.html to update the page title to "Quack Tower Defense 6: Duck vs Breadloon", add an inline duck emoji favicon, and import the 'Fredoka' and 'Nunito' Google Fonts for that signature BTD6 cartoon aesthetic.
I will update src/index.css with custom utility styles, animations, and font defaults.
I will create src/types/game.ts to define the TypeScript interfaces for all game entities including Duck Towers, 3-path Upgrade systems, Heroes, Quackloon enemies (from Red to BAD and Bosses), Maps, Waves, Game Modes, Projectiles, and Duck Knowledge.
I will create src/data/maps.ts with 4 distinct maps ranging from Beginner to Expert, complete with multi-path layouts, water zones for aquatic ducks, and vision-blocking obstacles.
I will create src/data/towers.ts with complete data for 4 Heroes and 18 Towers across Primary, Military, Magic, and Support categories, featuring 3 upgrade paths (Top, Mid, Bot) up to Tier 5 with BTD6 stat scaling and ability definitions.
I will update src/types/game.ts to include projectileSpeed and projectileRadius in the UpgradeNode.effect interface so towers can upgrade their projectile speed and size.
I will create src/data/waves.ts with 100 waves recreating BTD6 round progressions, including early red/blue waves, camo introduction on round 24, lead on round 28, the round 40 MOAB, round 60 BFB, round 63 Ceramic rush, round 80 ZOMG, round 90 DDT, and round 100 BAD boss blimp.
I will update BloonTier in src/types/game.ts to include purple bloons and modified tiers like fortified, camo, and regrow variants used in late-game rounds.
I will update src/data/waves.ts to include full stat entries for purple bloons (immune to energy/magic) and the camo/regrow/fortified variants required by TypeScript.
I will add the remaining camo, regrow, and fortified variants to BLOON_STATS in src/data/waves.ts.
I will create src/data/knowledge.ts to define the Duck Knowledge skill tree with permanent global perks like free first Dart Duck, +$200 starting cash, +25 Mana Shield, and Dual Crossbow Masters.
I will create src/utils/audio.ts using the Web Audio API to procedurally generate sound effects for popping bloons, explosions, duck quacks, cash chimes, ability triggers, victory fanfares, and an optional ambient pond music loop.
I will create src/components/ui/TopBar.tsx which displays player lives, cash, round progression, game speed controls (1x, 2x, 3x), auto-start toggle, audio switches, and navigation to the Encyclopedia and Duck Knowledge menus.
I will update TopBar.tsx to include a restart button using onRestart and remove the unused Coins import.
I will add the Restart button to the top left of the TopBar so players can quickly retry a map.
I will create src/components/ui/TowerDrawer.tsx which replicates the signature BTD6 right-hand sidebar with category tabs for Heroes, Primary, Military, Magic, Support, and Powers.
I will create src/components/ui/TowerInspector.tsx which renders when a tower on the map is clicked, providing target priority switching, pop statistics, ability triggers, sell controls, and the exact BTD6 3-path upgrade system with path locking restrictions.
I will clean up the unused icon imports and variable in TowerInspector.tsx.
I will read the top of TowerInspector.tsx to get the exact lines for the edit.
I will read lines 45-60 of TowerInspector.tsx to see canUpgradePath.
I will edit TowerInspector.tsx to remove unused icons from lucide-react and prefix _path in canUpgradePath.
I will prefix _path on line 47 to resolve the unused variable warning.
I will create src/components/ui/MapSelector.tsx which serves as the main menu for selecting maps (Beginner to Expert) and difficulty modes (Easy, Medium, Hard, Impoppable, CHIMPS, Deflation, Sandbox, and Boss Rush).
I will edit MapSelector.tsx to remove unused icon imports from lucide-react.
I will create src/components/ui/KnowledgeModal.tsx to let players unlock global permanent Duck Knowledge skill tree upgrades.
I will create src/components/ui/EncyclopediaModal.tsx which provides a reference guide for all bloon tiers (HP, speeds, RBE, immunities) and duck towers.
I will remove the unused Award icon import in EncyclopediaModal.tsx.
I will create src/components/ui/SandboxPanel.tsx to give players full control in Sandbox Mode to spawn custom bloon waves, test tower DPS, add infinite cash and health, and clear the track.
I will remove the unused Zap icon import from SandboxPanel.tsx.
I will create src/components/ui/GameOverModal.tsx which displays defeat statistics and retry options when players lose all their lives.
I will clean up the unused icon imports in GameOverModal.tsx.
I will create src/components/ui/VictoryModal.tsx which triggers a confetti celebration when players conquer a map and offers Free Play mode to test how long they can survive beyond the goal round.
I will remove the unused Award icon import in VictoryModal.tsx.
I will create src/components/canvas/GameCanvas.tsx to serve as the 60fps HTML5 canvas rendering and simulation engine, managing bloon AI, projectile physics, tower attack logic, and visual effects.
I will read lines 640-660 of GameCanvas.tsx to inspect the collision check where radius was accessed.
I will read lines 1-60 of GameCanvas.tsx to check the props interface and component signature.
I will clean up the unused imports and props at the top of GameCanvas.tsx.
I will update the collision detection in GameCanvas.tsx to get the radius from BLOON_STATS[b.tier]?.radius instead of accessing it directly on b.
I will create src/App.tsx to serve as the main controller for Quack Tower Defense 6, coordinating map selection, game loop state, audio synthesis, Duck Knowledge unlocks, tower placement/upgrading, and victory/defeat menus.
I will read lines 145-165 of App.tsx to check the newTower object assignment.
I will edit App.tsx to fix the boolean type assignment on line 155 and remove the unused POWER_ITEMS import.
I will update camoDetection in App.tsx to explicitly cast to boolean.
I will now build the project using build_project to ensure there are no compilation errors or broken imports.
I have created an exact clone of Bloons Tower Defense 6 (BTD6) reimagined with ducks and breadcrumbs: Quack Tower Defense 6: Duck vs Breadloon (QTD6)!
4 Maps (Beginner to Expert):
4 Hero Ducks (Level 1–20 automatically with custom voice lines and 2 active abilities with cooldowns):
18 Duck Towers with Exact BTD6 3-Path Upgrades (Top, Mid, Bot up to Tier 5 Apex):
Files built: index.html, src/index.css, src/types/game.ts, src/data/maps.ts, src/data/towers.ts, src/data/waves.ts, src/data/knowledge.ts, src/utils/audio.ts, src/components/ui/TopBar.tsx, src/components/ui/TowerDrawer.tsx, src/components/ui/TowerInspector.tsx, src/components/ui/MapSelector.tsx, src/components/ui/KnowledgeModal.tsx, src/components/ui/EncyclopediaModal.tsx, src/components/ui/SandboxPanel.tsx, src/components/ui/GameOverModal.tsx, src/components/ui/VictoryModal.tsx, src/components/canvas/GameCanvas.tsx, src/App.tsx
100-Round Wave Progression & Enemy Tiers:
Duck Knowledge Skill Tree & Interactive Encyclopedia:
Web Audio API Sound Synthesizer & 60 FPS Canvas Engine: