Free downloads — templates, wallpapers, and more
← Back to Technology

Game Design: Tater Towers — Defend the Harvest!

·
Hot Potato Games

A complete game design document, asset list, and AI prompt chain for building a potato-themed tower defense game in a weekend.

Tater Towers hero image — cartoon tower defense with potato towers defending a field

🥔 The Pitch

Your potato harvest is under siege. Aphids swarm, gophers tunnel, and crows dive-bomb from above. Your only defense? Towers cobbled together from farm equipment and potato-powered ingenuity. Place towers. Earn starch. Upgrade. Survive 30 waves. Save the harvest.

Genre: Tower Defense
Platform: Web (HTML5 Canvas, vanilla JavaScript, single-file deployment)
Build time: 1-2 days for one developer

🎮 Core Loop

Every 30 seconds, the player:

  1. Scans the battlefield for optimal tower positions
  2. Places or upgrades towers using earned starch currency
  3. Watches the next enemy wave navigate the winding path
  4. Towers auto-fire — the player's decisions are where to build and when to upgrade

The tension: spend starch now on more towers, or save for expensive upgrades?

⚙️ Key Mechanics

1. Tower Placement

Three tower types, each with unique personality:

Tower Cost Style Best For
🔫 Spud Gun 50 starch Fast, low damage, short range Early waves, swarm control
🔨 Masher 100 starch Medium, area damage, medium range Groups, mid-game staple
🍟 Fry Fryer 200 starch Slow, high damage, burn DOT Bosses, tanky enemies

Click a tower from the shop panel → hover over the field to see range preview → click a valid grass tile to place. Chokepoints and path curves are prime real estate.

2. Starch Economy

Killing enemies earns starch. Complete a wave with all potatoes intact for a +50 bonus. Selling towers returns 60% of invested starch. The economy forces constant trade-off decisions — breadth vs. depth.

3. Tower Upgrades

Three upgrade levels per tower. Each level: +30% damage, +10% range, +10% fire rate. Upgrade cost = 75% of base price per level. A fully upgraded Fry Fryer is devastating but costs as much as four Spud Guns.

4. Enemy Variety

  • 🐛 Aphids — Fast swarms that overwhelm single-target towers
  • 🐿️ Gophers — Tanky and steady, require sustained DPS
  • 🐦 Crows — Fly diagonally, partially ignoring the path (cheaters!)
  • 🪲 Giant Potato Beetle — Boss every 10 waves. 10x HP, drops 500 starch

5. Wave Progression

  • Waves 1-5: Tutorial. Aphids only. Learn tower placement.
  • Waves 6-10: Gophers appear. Time to upgrade or diversify.
  • Wave 10: First boss — Giant Potato Beetle!
  • Waves 11-20: All enemy types. Speed and HP scale +15% per wave.
  • Waves 21-30: Frantic. Optimized layouts required.
  • Wave 30: Final boss + swarm. Victory screen with stats!

🎨 Art Style

Warm, earthy, hand-drawn pixel art. Think Stardew Valley meets Kingdom Rush. Browns, greens, and oranges dominate. Cute character designs — enemies look mischievous, not scary. Towers look like improvised farm equipment. The potato field is lush and inviting. All graphics drawn with Canvas API (zero external image files).

🔊 Sound Design

100% procedural using Web Audio API — no sound files to load:

  • Music: Upbeat 4-bar farm loop. Square wave melody, sine bass, noise hi-hats. Think digital banjo.
  • Towers: Satisfying pop (Spud Gun), deep whomp (Masher), sizzle (Fry Fryer)
  • Deaths: Wet squish. Satisfying.
  • Wave clear: Triumphant 3-note ascending chord
  • Game over: Descending trombone wah-wah

💰 Monetization (XRP Integration)

  • Cosmetic Tower Skins — Golden towers, seasonal themes via XRP micropayment
  • Challenge Maps — Additional layouts unlocked with XRP
  • Leaderboard Stakes — Wager small XRP on beating high scores
  • Tip the Dev — Direct XRP tip jar on the victory screen

🚀 MVP Scope

What's the minimum to be fun? One dev, one weekend:

  • ✅ Single hardcoded map with snaking path
  • ✅ 3 tower types with 3 upgrade levels each
  • ✅ 3 enemy types + 1 boss
  • ✅ 15-20 waves
  • ✅ Procedural audio (zero file loading)
  • ✅ Canvas-drawn sprites (zero image files)
  • ✅ Single index.html, zero dependencies
  • ✅ High score in localStorage
  • ✅ Mobile-responsive touch controls

🔗 The Prompt Chain

Here's the magic. Five prompts that, given to a coding AI agent, will build the entire game from scratch:

Prompt 1: Project Setup + Core Game Loop

Build a tower defense game called "Tater Towers" using vanilla JavaScript + HTML5 Canvas.

Setup:
- Single index.html file with embedded CSS and JS (no build tools)
- Canvas sized 960x640, centered on page with dark brown background
- Retro-pixel art aesthetic with warm earthy tones

Core game loop:
- Winding dirt path crosses a green potato field from left to right
- Enemies spawn left, walk the path toward the potato harvest on the right
- Player places defensive towers on grass tiles adjacent to the path
- Towers auto-attack enemies in range
- Enemies reaching the end steal potatoes (lives). Start with 20.
- Killing enemies earns "starch" (currency)
- Waves of enemies with increasing count and speed
- Wave counter, starch counter, potato lives in top HUD
- "Start Wave" button. Auto-start after 10s idle.
- Game over when potatoes reach 0.

Map: 2D tile array (12x8, 80px tiles). Hardcode a snaking path.

Tower types:
1. Spud Gun — 50 starch, fast, low damage, short range
2. Masher — 100 starch, AoE, medium range
3. Fry Fryer — 200 starch, high damage, slow, burn DOT

Enemy types:
1. Aphid — fast, low HP
2. Gopher — medium, medium HP
3. Crow — slow, high HP, flies diagonally

Placeholder graphics (colored shapes). Starting starch: 200. Wave 1: 5 aphids.

Prompt 2: Mechanics + Interaction

Enhance Tater Towers:

1. Tower Shop — right panel with icons + costs. Click to select, click tile to place. Range circle preview. Green/red tile highlighting. Right-click or Esc to cancel.

2. Tower Upgrades — Click tower to select. Info panel shows stats. Upgrade button (75% base cost/level, max 3). +30% damage, +10% range/fire rate per level. Sell at 60% return.

3. Projectiles — Spud Gun: brown circles. Masher: expanding AoE ring. Fry Fryer: orange beam, 0.5s linger.

4. Waves — Scale count/HP/speed. Waves 1-5 aphids only. 6-10 mix. 11+ all types, +15% HP/wave. Boss every 10 waves (3x size, 10x HP, 500 starch reward).

5. Scoring — kills × wave multiplier. Perfect wave bonus: +50 starch. localStorage high score.

Prompt 3: Art + UI Polish

Polish Tater Towers visually (all Canvas-drawn, no external images):

- Towers: Spud Gun = potato base + cannon barrel. Masher = kitchen masher shape. Fry Fryer = basket with orange oil glow.
- Enemies: Aphid = green bug with legs. Gopher = brown circle with ears/teeth. Crow = black bird with wings.
- Tiles: Path = brown dirt with pebbles. Grass = green with shade variation.
- HUD: potato icons for lives, starch coin icon.
- VFX: muzzle flash, death particles, damage flash, wave banner, screen edge flash on potato loss.
- Title screen: "TATER TOWERS" in chunky text, "Defend the Harvest!", start button, high score.
- Warm palette: browns, greens, orange, cream.

Prompt 4: Sound + Balance

Add to Tater Towers:

1. Procedural sound (Web Audio API, no files):
   - Tower sounds: pop, whomp, sizzle
   - Enemy death squish, potato lost plop
   - Tower placed clunk, wave start alarm, wave complete fanfare
   - Game over descending wah-wah
   - 4-bar looping background music (square wave melody, sine bass, noise hi-hat)
   - Volume slider

2. Balance: waves 1-3 easy, wave 5 first challenge, wave 10 boss hard but beatable, wave 20+ frantic.

3. QoL: pause on blur, 2x speed button, keyboard shortcuts (1/2/3 towers, Space start wave, P pause, Esc deselect), mobile touch, responsive canvas.

4. Win at wave 30 — victory screen with stats.

Prompt 5: Deploy

Finalize Tater Towers:
- Single index.html, inline CSS+JS
- OG meta tags (title, description, image)
- "Made by Hot Potato Games — hotpotatogames.com" footer
- Analytics console.logs (game start, wave reached, game over)
- Under 100KB total
- Viewport meta for mobile
- Inline SVG favicon (potato)
- Test all systems work end-to-end

🎨 Bonus: DALL-E Asset Prompts

If you want real pixel art instead of Canvas-drawn graphics, paste these into any image generation API:

  • Spud Gun: "Pixel art game sprite, white background: A cute turret made from a potato with a small cannon on top. Three upgrade levels. Warm brown, 64x64 pixel style."
  • Masher: "Pixel art game sprite, white background: A potato masher kitchen tool as a tower defense turret. Silver head, wooden handle. 64x64 pixels."
  • Fry Fryer: "Pixel art game sprite, white background: A miniature deep fryer as a turret. Wire basket, bubbling orange oil, steam clouds. 64x64 pixels."
  • Aphid: "Pixel art sprite sheet, white background: Cute green aphid bug, six legs, antenna, cartoonish eyes. 4-frame walk cycle. 32x32 pixels."
  • Gopher: "Pixel art sprite sheet, white background: Chubby cartoon gopher, brown fur, big teeth, small ears. 4-frame walk cycle. 32x32 pixels."
  • Crow: "Pixel art sprite sheet, white background: Cartoon black crow, flapping wings, orange beak. 4-frame flight cycle. 32x32 pixels."
  • Boss Beetle: "Pixel art sprite, white background: Giant Colorado potato beetle, brown/yellow stripes, angry cartoon eyes. 96x96 pixels."

Ready to build this? Grab the prompt chain, feed it to your favorite AI coding agent, and you'll have a playable tower defense game by Monday. 🥔🏰

— Hot Potato Games
hotpotatogames.com