Garden Defense: SVG tower defense

A strategy game OpenVGLab built with Claude Opus 5.5. Copy the exact prompt free.

OpenVGLab built this with Claude Opus 5.5 and shared the full prompt on GitHub; it is quoted below word for word. Tower defense inspired by Plants vs. Zombies: collect sun, plant defenders, hold five lanes, keep the zombies out of the house. Soft cartoon backyard. A single This prompt is in Chinese. Paste it as written; Claude follows it in any language. Add "Make all in-game text English" if you want English menus. Prompt in Chinese. Tower defense inspired by Plants vs. Zombies: collect sun, plant defenders, hold five lanes, keep the zombies out of the house. Soft cartoon backyard. A single

The prompt

你负责独立完成一款浏览器小游戏《花园保卫战 GARDEN DEFENSE》:收集阳光、种植物守住后院的塔防游戏,玩法借鉴《植物大战僵尸》,角色、名字和美术全部原创。

【交付】
- 只交付一个自包含文件 garden-defense.svg,根元素为 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="100%" height="100%" preserveAspectRatio="xMidYMid meet">,窗口缩放时 16:9 画面完整居中。
- 画面、界面、游戏逻辑(内联脚本)和音效全部写在这一个文件里,不引用任何外部图片、字体、脚本或网络资源,浏览器直接打开就能玩。文件必须是合法的 UTF-8 XML。
- 界面文字用中文,标题配英文副标题。音效和背景音乐用 Web Audio 实时合成,第一次按键或点击后开始发声,M 键静音。
- 只借鉴玩法,不使用原作的角色、名字或标志性素材。

【玩法】
- 草坪是 5 行 × 9 列的格子。僵尸从右侧街道沿 5 条路走来,玩家要守住左边的家门。
- 阳光:点击天上掉下来的阳光收集,暖阳葵也会定时产出。种植物要花阳光,种完后卡片进入冷却。
- 6 种植物(数字键 1~6):暖阳葵 50(定时产出阳光)、豌豆炮 100(朝前方逐颗发射豌豆)、连发豆 200(一次连射两颗)、霜冻豆 175(冰豆让僵尸变蓝、减速)、土豆盾 50(超级耐啃,越啃越破)、辣椒爆弹 150(种下即爆,炸飞周围 3×3)。铲子可以移除植物。
- 5 种僵尸:普通僵尸(慢吞吞,见啥啃啥)、路锥僵尸(头顶路锥,更耐打)、水桶僵尸(铁皮水桶,超级硬)、跑跑僵尸(受伤后撒腿狂奔)、晾衣杆僵尸(撑杆跳过第一株植物)。僵尸会停下来啃挡路的植物。
- 每行有一台小推车作为最后防线,僵尸碰到时推平整行,只能用一次;僵尸闯进家门就失败。
- 僵尸分波次进攻,大波来袭前有提示,最后一波有警告;撑过所有波次就胜利。

【难度】
- 简单“阳光充足”:初始阳光 200,共 8 波。
- 普通“标准挑战”:初始阳光 125,共 10 波。
- 困难“僵尸凶猛”:初始阳光 75,共 12 波,僵尸更耐打、更快、来得更密。
- 难度越高得分倍率越高,用 localStorage 记录最高分。

【操作】
- 鼠标或触屏:点卡片,再点草地格子种植;点击阳光收集;点铲子再点植物即可移除;右键或 Esc 取消。
- 键盘:1~6 选卡,方向键移动光标,空格 / 回车 种植、铲除或收阳光;S 铲子,P 暂停,H 帮助,M 静音。

【画面】
- 柔和卡通的阳光后院:左边是带门牌号的浅色木屋,每行门前停着一台红色小推车;中间是深浅相间的草坪格子,镶着花丛边;上方是白色木栅栏和大树;右边是人行道、邮筒、消防栓和街道。
- 植物圆润、有表情;僵尸滑稽不吓人,穿衬衫系领带,分别戴路锥、顶水桶,跑跑僵尸穿橙色运动服、系头带,晾衣杆僵尸扛着一根晾衣杆。
- HUD:左上角是阳光数和 6 张植物卡(标价格和快捷键,冷却时盖上遮罩),旁边是铲子;右上角是难度、分数、暂停和静音;右下角是波次进度条,用僵尸头像和旗帜标出大波;选中的格子用虚线框高亮。

【流程与界面】
- 标题页:木牌大标题,中间是难度选择、“开始游戏”和“游戏帮助”按钮以及最高分,底部写着鼠标和键盘两种操作;背景里植物和僵尸已经就位。
- 帮助页“怎么玩”:收集阳光、选卡种植、挡住僵尸、小推车、撑过所有波次,并附植物图鉴和僵尸档案(价格、冷却、特点)。
- 开局显示“准备好了吗?开始守护!”;暂停菜单有继续游戏、重新开始、返回标题。
- 结算页:胜利显示“花园守住啦!”,失败显示“僵尸闯进家门啦!”,列出本局得分、坚持到第几波、击败僵尸数、种下植物数、用时和剩余小推车。

【验收】
在无头 Chrome 里自动试玩:从标题页开局,收集阳光并种下至少一株植物。要求 0 个 JS 报错、0 个 XML 解析错误、帧率不低于 55 fps;在 1280×720 和 1920×1080 两种分辨率下截图,确认画面完整、文字不溢出。

Prompt by OpenVGLab, quoted word for word from their GitHub repository. Model as stated by the creator; your result will differ.

What’s inside

  1. Copy the prompt below, or download it as a SKILL.md
  2. Paste it into Claude Opus 5.5, ideally in Claude Code so it can write, run and test the game
  3. Swap in your own theme, characters or rules where the prompt names theirs
  4. Play it, then ask for fixes and polish in plain words

What you’ll bring

  • Claude Opus 5.5 (Claude Code, or a Claude chat for single-file HTML games)
  • A browser to play the result
  • Your own twist on the idea, if you want one

What you’ll get

  • A playable browser game in the spirit of the one above, written by Claude
  • The code, which you can keep editing

Perfect for

  • Anyone who wants to make a game without coding
  • Developers testing what Opus 5.5 can build
  • Teachers and parents making a game with kids

Also found as

opus 5.5 game prompt · claude game prompt · one shot game prompt · strategy · garden defense: svg tower defense

Questions

What is Garden Defense: SVG tower defense?

Garden Defense: SVG tower defense is a strategy game that OpenVGLab built with Claude Opus 5.5. This page quotes the prompt they shared, word for word.

Who made it, and where was the prompt shared?

OpenVGLab made it and shared the prompt on GitHub: https://github.com/OpenVGLab/awesome-opus5.5-frontend-showcases/blob/main/README.en.md. You can find more from them at https://github.com/OpenVGLab/awesome-opus5.5-frontend-showcases.

How do I use the prompt?

1. Copy the prompt below, or download it as a SKILL.md. 2. Paste it into Claude Opus 5.5, ideally in Claude Code so it can write, run and test the game. 3. Swap in your own theme, characters or rules where the prompt names theirs. 4. Play it, then ask for fixes and polish in plain words.

Is it free?

Yes. Copying the prompt and downloading the SKILL.md costs nothing on Omo. You run it with your own access to Claude Opus 5.5.

The video and the prompt belong to OpenVGLab. Omo lists them free, with credit and a link to the original post. Creators can ask us to remove a listing at omo.space/support.