用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一款以明亮草地为背景的趣味卡通对战沙盒。从 10 种原创单位中挑选(长矛兵、弓箭手、投石车、盾墙、山羊骑兵、法球巫师、分裂史莱姆、巨型雪人、号角鼓手和气球轰炸兵),在左半场或右半场拖出线条部署阵型,涂绘减速河流、山丘和森林,按下战斗即可观看数百名玩具士兵流畅交锋并爆成节日彩纸。包含慢动作、跟随镜头、即时回放、URL 对战分享和 12 个金币预算挑战谜题。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Draw Battle Simulator Game
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
Build a cheerful cartoon toy battle simulator titled [BRAND] set on [MAP_NAME] where players paint rows of tiny soldiers—[RED_TEAM] (#FF5A5F) on the left and [BLUE_TEAM] (#3A86FF) on the right—by dragging lines across a sunny meadow (#8BC34A) beneath a clear sky (#BEE3F8), then press Fight to watch hundreds of units clash smoothly with spatial-hash flocking and joyful confetti pops (zero blood). Include 10 original code-drawn units with distinct strengths and counters (Pikemen, Archers, Catapults, Shield Walls, Goat Cavalry, Orb Wizards with bouncing orbs, Splitting Slimes, Giant Snowmen, Horn Drummers who buff nearby allies, and Balloon Bombers), paintable terrain brushes (River, Hills, Forest that slow units or grant range/cover), Slow-Motion (0.35×), Follow-Action Camera zoom, Replay of drawn formations, 12 coin-budget Challenge Puzzles ('Win with 40 coins'), and Share Battle URL encoding. Open on frame one with an animated skirmish already charging across the meadow.
- Audience: Browser gamers, physics-sandbox fans, and casual strategy players who love immediate draw-and-watch toys.
- Goal: Hook players in one second with a vibrant mid-charge toy battle on frame one, then make drawing armies, painting terrain, and solving 12 tactical coin puzzles effortlessly fun on desktop and touch devices.
- Tone: Sunny, bouncy, wooden-toybox whimsy—festive confetti pops and cheerful unit silhouettes.
## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Tailwind CSS 4
- Libraries: lucide-react (ISC), @fontsource/fredoka (OFL-1.1), @fontsource/plus-jakarta-sans (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Set base: './' and build: { sourcemap: false } in vite.config.ts.
- Import @fontsource/fredoka (600, 700), @fontsource/plus-jakarta-sans (400, 500, 600, 700), and @fontsource/jetbrains-mono (400, 500, 600) in src/main.tsx.
- Author the high-performance spatial-hash flocking & combat engine in src/sim/battleEngine.ts supporting up to 1,000 units smoothly with distinct behaviors for all 10 units (bouncing wizard orbs, slime splitting on pop, catapult splash boulders, drummer haste aura, shield-wall damage reduction, terrain slowdown in river/forest and hill range boost, and joyful multi-color confetti pops).
- Author the 12 coin-budget Challenge Puzzles and compact URL hash encoder/decoder in src/sim/puzzles.ts, and keep all copy and unit metadata in src/content.ts.
- Render the sunny meadow battlefield synchronously on frame one mid-charge with soft sky horizon, painted rivers/forests/hills, crisp cartoon unit silhouettes, projectiles, and confetti bursts.
## Variables
- [BRAND] — Game Title (default: "Meadow Clash"). Playful cartoon battle sandbox title
- [RED_TEAM] — Left Army Name (default: "Crimson Brigade"). Name of the red left-side toy army
- [BLUE_TEAM] — Right Army Name (default: "Cobalt Banner"). Name of the blue right-side toy army
- [MAP_NAME] — Battlefield Name (default: "Buttercup Field"). Sunny meadow arena label
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/draw-battle-simulator-game in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Sunny Meadow `#8BC34A` — Primary grassy toybox battlefield
- Daybreak Sky `#BEE3F8` — Page backdrop, top horizon clouds, and painted rivers
- Crimson Team `#FF5A5F` — Left army tunics, counters, and team banner
- Cobalt Team `#3A86FF` — Right army tunics, counters, and team banner
- Toybox Cream `#FFFDF7` — Crisp HUD bar, unit palette dock, and puzzle drawer
- Ink Charcoal `#1F2937` — Chunky cartoon borders, typography, and shadows
### Typography
- Game Title & Victory Banners: Fredoka (OFL), weights 600/700
- Unit Tooltips & Controls: Plus Jakarta Sans (OFL), weights 400/500/600/700
- Unit Counts, Coins & Speed: JetBrains Mono (OFL), weights 400/500/600
### Layout & motion
- Spacing: Compact sunny top control bar, full-width framed meadow battle canvas occupying the heart of the viewport, and tactile bottom 10-unit + terrain brush dock that wraps cleanly on 390px mobile.
- Radius: 14px for meadow stage and puzzle cards with chunky 2px ink borders; full-pill buttons for Fight, Slow-Mo, Follow Cam, and Replay.
- Motion: Live mid-charge cartoon battle running right on frame one with hopping walk cycles, arching arrows, bouncing wizard orbs, and celebratory confetti bursts when units pop.
- Motion: Smooth line-sketch preview trail showing exactly where toy soldiers will spawn while dragging a finger or mouse across the meadow.
- Motion: Follow-Action Camera smoothly zooms and pans toward the densest active front-line clash.
- Motion: Under prefers-reduced-motion, slow animations gently and disable camera shake while preserving full playability.
- Imagery: 100% code-drawn HTML5 Canvas 2D sunny meadow terrain (hills, winding rivers, puffy cartoon pine forests), 10 distinct toy soldier archetypes, bouncing orbs, catapult rocks, and confetti particles.
## Pages & Sections
### [BRAND] · Draw Battle Simulator (`#/battle`)
1. **Top Command Bar & Live Meadow Battlefield Canvas** — Playful cream-and-ink top bar displaying [BRAND] crest, live army balance bar ([RED_TEAM] count vs [BLUE_TEAM] count), primary Fight / Pause button, Slow-Mo (0.35×) toggle, Follow Cam toggle, Replay button, Clear button, Puzzles (12) drawer button, and Share URL copy button. Directly below fills the sunny [MAP_NAME] Canvas stage already mid-charge on frame one (Red vs Blue toy armies colliding with arrows, wizard orbs, and confetti pops!). Dragging on the left half deploys [RED_TEAM] units along your stroke; dragging on the right half deploys [BLUE_TEAM] units (or paint River, Hill, and Forest terrain when a Terrain Brush is selected).
Layout: Full-width responsive battlefield inside 1280px container (min-h 460px desktop / 330px mobile) with zero overflow.
Motion: Real-time 60fps flocking simulation with smooth stroke-to-spawn unit placement.
2. **10-Unit Toybox Dock & Paintable Terrain Brushes** — Tactile bottom selector strip featuring all 10 cartoon units with coin cost, role tag, and hover counter hint: Pikeman (2g), Archer (3g), Shield Wall (3g), Goat Cavalry (4g), Splitting Slime (4g), Horn Drummer (4g), Orb Wizard (5g), Balloon Bomber (6g), Catapult (7g), and Giant Snowman (8g)—plus 4 Terrain Brushes (`River — Slows 50%`, `Forest — Slows & Cover`, `Hill — +30% Range`, `Grass Eraser`).
Layout: Responsive horizontal chip dock on desktop; compact wrapping grid on 390px mobile.
Motion: Active brush pops up with chunky toybox ink shadow.
3. **12 Coin-Budget Challenge Puzzles & Shareable Battle Links** — Slide-over or modal drawer listing 12 handcrafted tactical puzzles (e.g., '01: Shield Breaker · 32 Coins', '04: Goat Charge · 40 Coins', '08: River Crossing · 48 Coins', '12: Snowman Siege · 70 Coins') with completion stars saved in localStorage. Loading a puzzle spawns the fixed [BLUE_TEAM] defense and gives the player a strict coin budget on the [RED_TEAM] side. 'Share URL' serializes the drawn units and terrain into a compact hash parameter so opening the link recreates the exact battle. Subtle footer with optional [CREDIT] link.
Layout: Clean 2-column puzzle modal grid + share confirmation toast.
Motion: Victory banner bursts festive confetti and marks the puzzle solved.
## Assets
- icon: Install lucide-react (ISC) for playback controls, terrain brushes, puzzle trophies, camera toggles, and share actions.
- font: Install @fontsource/fredoka, @fontsource/plus-jakarta-sans, and @fontsource/jetbrains-mono (OFL-1.1) and import directly in src/main.tsx.
- image: Draw the sunny meadow, rivers, hills, forests, all 10 cartoon unit archetypes, projectiles, and confetti bursts directly on HTML5 Canvas inside src/sim/battleEngine.ts.
## Don'ts
- No code, art, sound files, or layouts copied from Neal Agarwal's Battle Draw.
- No blood, gore, or realistic violence—defeated toy units pop into bright party confetti.
- No calendar dates or four-digit years anywhere on the rendered UI.
- No empty battlefield on frame one—launch immediately with a lively mid-charge skirmish.
- No clip-path hiding sections before scroll.
- No CDN scripts/fonts, no backend APIs, no source maps in production build, and keep dist/ under 20 MB.
- No console errors or horizontal overflow at 1440x900 desktop or 390x844 mobile.
---
Inspired by Draw-to-Deploy Cartoon Battle Sandbox by @nealagarwal — https://neal.fun/
— Prompt by VibeFather · https://vibefather.ai/t/draw-battle-simulator-game · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 绘制对战模拟器游戏
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
构建一个欢快的卡通玩具战斗模拟器,标题为 [BRAND],场景设在 [MAP_NAME],玩家可以在阳光明媚的草地(#8BC34A)上、晴朗天空(#BEE3F8)下,通过拖拽线条来涂绘一排排小士兵——左侧是 [RED_TEAM](#FF5A5F),右侧是 [BLUE_TEAM](#3A86FF),然后按下 Fight,观看数百个单位以空间哈希群集(spatial-hash flocking)平滑交战,并伴随欢快的彩纸爆裂(零血腥)。包含 10 个原创代码绘制单位,各有独特优势与克制关系(Pikemen、Archers、Catapults、Shield Walls、Goat Cavalry、Orb Wizards(带弹跳法球)、Splitting Slimes、Giant Snowmen、Horn Drummers(为附近友军提供增益)和 Balloon Bombers),可涂绘的地形笔刷(River、Hills、Forest,可减速单位或提供射程/掩护)、慢动作(0.35×)、跟随动作镜头缩放、已绘制阵型的回放、12 个金币预算挑战谜题(“Win with 40 coins”)以及分享战斗 URL 编码。第一帧即开场,一场动画遭遇战已经在草地上冲锋。
- 受众:浏览器游戏玩家、物理沙盒爱好者,以及喜欢即时绘制并观看玩具的休闲策略玩家。
- 目标:在第一帧用一场充满活力的冲锋中玩具战斗在一秒内吸引玩家,然后让绘制军队、涂绘地形和解决 12 个战术金币谜题在桌面端和触屏设备上都轻松有趣。
- 基调:阳光明媚、弹跳活泼、木制玩具盒般的奇思妙想——节日彩纸爆裂和欢快的单位剪影。
## 技术栈
- 框架:Vite 6 + React 18 + TypeScript
- 样式:Tailwind CSS 4
- 库:lucide-react(ISC)、@fontsource/fredoka(OFL-1.1)、@fontsource/plus-jakarta-sans(OFL-1.1)、@fontsource/jetbrains-mono(OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务端代码、无外部 API。
- 设置:
- 在 vite.config.ts 中设置 base: './' 和 build: { sourcemap: false }。
- 在 src/main.tsx 中导入 @fontsource/fredoka(600、700)、@fontsource/plus-jakarta-sans(400、500、600、700)和 @fontsource/jetbrains-mono(400、500、600)。
- 在 src/sim/battleEngine.ts 中编写高性能空间哈希群集与战斗引擎,支持最多 1,000 个单位流畅运行,全部 10 种单位具有各自不同的行为(弹跳的巫师法球、史莱姆被击破时分裂、投石车溅射巨石、鼓手加速光环、盾墙减伤、河流/森林地形减速与丘陵射程加成,以及欢快的多彩纸屑爆裂)。
- 在 src/sim/puzzles.ts 中编写 12 个金币预算挑战谜题和紧凑的 URL hash 编码器/解码器,并将所有文案和单位元数据保留在 src/content.ts 中。
- 在第一帧同步渲染阳光明媚的草甸战场,处于冲锋中段,带有柔和的天空地平线、手绘风格的河流/森林/丘陵、清晰的卡通单位剪影、投射物和纸屑爆裂。
## 变量
- [BRAND] — 游戏标题(默认:“Meadow Clash”)。俏皮卡通对战沙盒标题
- [RED_TEAM] — 左方军队名称(默认:“Crimson Brigade”)。左侧红色玩具军队的名称
- [BLUE_TEAM] — 右方军队名称(默认:“Cobalt Banner”)。右侧蓝色玩具军队的名称
- [MAP_NAME] — 战场名称(默认:“Buttercup Field”)。阳光草甸竞技场标签
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/draw-battle-simulator-game(默认:是;删除此行即可移除)
“页面与区块”下的文案是按默认值编写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- 阳光草地(Sunny Meadow)`#8BC34A` — 主要的草地玩具箱战场
- 破晓天空(Daybreak Sky)`#BEE3F8` — 页面背景、顶部地平线云朵和绘制河流
- 绯红队(Crimson Team)`#FF5A5F` — 左方军队束腰外衣、计数器和队伍旗帜
- 钴蓝队(Cobalt Team)`#3A86FF` — 右方军队束腰外衣、计数器和队伍旗帜
- 玩具箱奶油色(Toybox Cream)`#FFFDF7` — 清爽的 HUD 栏、单位调色板停靠区和拼图抽屉
- 墨炭色(Ink Charcoal)`#1F2937` — 粗壮卡通边框、排版和阴影
### 排版
- 游戏标题与胜利横幅:Fredoka(OFL),字重 600/700
- 单位提示与控件:Plus Jakarta Sans(OFL),字重 400/500/600/700
- 单位计数、金币与速度:JetBrains Mono(OFL),字重 400/500/600
### 布局与动效
- 间距:紧凑的阳光顶部控制栏、占据视口核心的全宽带框草地战斗画布,以及触感十足的底部 10 单位 + 地形画笔停靠区,在 390px 移动端上可干净换行。
- 圆角:草地舞台和拼图卡片使用 14px 圆角,配粗壮 2px 墨色边框;Fight、Slow-Mo、Follow Cam 和 Replay 使用全胶囊按钮。
- 动效:第一帧即运行实时冲锋中的卡通战斗,带有跳跃行走循环、拱形箭矢、弹跳巫师法球,以及单位爆裂时的庆祝彩纸爆发。
- 动效:平滑的线条草图预览轨迹,在手指或鼠标拖过草地时精确显示玩具士兵将生成的位置。
- 动效:跟随动作相机平滑缩放和平移,朝向最密集的活跃前线冲突。
- 动效:在 prefers-reduced-motion 下,缓慢动画温和减速并禁用相机抖动,同时保持完整可玩性。
- 图像:100% 代码绘制的 HTML5 Canvas 2D 阳光草地地形(山丘、蜿蜒河流、蓬松卡通松树林)、10 种独特的玩具士兵原型、弹跳法球、投石机石块和彩纸粒子。
## 页面与区块
### [BRAND] · 绘画对战模拟器(`#/battle`)
1. **顶部命令栏与实时草地对战画布** — 俏皮的奶油色与墨色顶部栏,展示 [BRAND] 徽章、实时军队平衡条([RED_TEAM] 数量 vs [BLUE_TEAM] 数量)、主 Fight / Pause 按钮、Slow-Mo(0.35×)切换、Follow Cam 切换、Replay 按钮、Clear 按钮、Puzzles(12)抽屉按钮,以及 Share URL 复制按钮。正下方是阳光明媚的 [MAP_NAME] Canvas 舞台,第一帧就已处于冲锋中(红蓝玩具军队碰撞,伴随箭矢、巫师法球和彩纸爆裂!)。在左半区拖动可沿你的笔画部署 [RED_TEAM] 单位;在右半区拖动可部署 [BLUE_TEAM] 单位(或在选中 Terrain Brush 时绘制 River、Hill 和 Forest 地形)。
布局:1280px 容器内全宽响应式战场(桌面端 min-h 460px / 移动端 330px),零溢出。
动效:实时 60fps 群集模拟,笔画到生成单位的放置平滑流畅。
2. **10 单位玩具箱停靠栏与可绘制地形笔刷** — 触感十足的底部选择条,展示全部 10 个卡通单位,附金币成本、角色标签和悬停计数器提示:Pikeman(2g)、Archer(3g)、Shield Wall(3g)、Goat Cavalry(4g)、Splitting Slime(4g)、Horn Drummer(4g)、Orb Wizard(5g)、Balloon Bomber(6g)、Catapult(7g)和 Giant Snowman(8g)——外加 4 个 Terrain Brushes(`River — Slows 50%`、`Forest — Slows & Cover`、`Hill — +30% Range`、`Grass Eraser`)。
布局:桌面端为响应式水平 chip 停靠栏;390px 移动端为紧凑换行网格。
动效:激活的笔刷弹起,带有厚重的玩具箱墨影。
3. **12 个金币预算挑战谜题与可分享对战链接** — 滑出式或模态抽屉,列出 12 个手工战术谜题(例如 '01: Shield Breaker · 32 Coins'、'04: Goat Charge · 40 Coins'、'08: River Crossing · 48 Coins'、'12: Snowman Siege · 70 Coins'),完成星级保存在 localStorage 中。加载谜题会生成固定的 [BLUE_TEAM] 防御,并在 [RED_TEAM] 一侧给玩家严格的金币预算。'Share URL' 将绘制的单位和地形序列化为紧凑的 hash 参数,因此打开链接即可重现完全相同的对战。底部有可选 [CREDIT] 链接的简洁页脚。
布局:整洁的 2 列谜题模态网格 + 分享确认 toast。
动效:胜利横幅爆出节日彩纸并标记谜题已解决。
## 资源
- 图标:安装 lucide-react(ISC),用于播放控制、地形笔刷、解谜奖杯、相机切换和分享操作。
- 字体:安装 @fontsource/fredoka、@fontsource/plus-jakarta-sans 和 @fontsource/jetbrains-mono(OFL-1.1),并在 src/main.tsx 中直接导入。
- 图像:在 src/sim/battleEngine.ts 内的 HTML5 Canvas 上直接绘制阳光草甸、河流、丘陵、森林、全部 10 种卡通单位原型、投射物和彩纸爆裂效果。
## 不要做
- 不要复制 Neal Agarwal 的 Battle Draw 中的代码、美术、声音文件或布局。
- 不要出现血、血腥或写实暴力——被击败的玩具单位会爆成明亮的派对彩纸。
- 渲染出的 UI 上任何地方都不要出现日历日期或四位年份。
- 第一帧不要是空荡荡的战场——启动时立即呈现一场热闹的冲锋中遭遇战。
- 不要用 clip-path 在滚动前隐藏区块。
- 不要 CDN 脚本/字体,不要后端 API,生产构建中不要 source maps,并保持 dist/ 在 20 MB 以下。
- 在 1440x900 桌面端或 390x844 移动端不要出现控制台错误或水平溢出。
---
Inspired by Draw-to-Deploy Cartoon Battle Sandbox by @nealagarwal — https://neal.fun/
— Prompt by VibeFather · https://vibefather.ai/t/draw-battle-simulator-game · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Draw Battle Simulator Game"
colors:
sunny_meadow: "#8BC34A"
daybreak_sky: "#BEE3F8"
crimson_team: "#FF5A5F"
cobalt_team: "#3A86FF"
toybox_cream: "#FFFDF7"
ink_charcoal: "#1F2937"
typography:
game_title_victory_banners: { family: "Fredoka", weights: [600, 700] }
unit_tooltips_controls: { family: "Plus Jakarta Sans", weights: [400, 500, 600, 700] }
unit_counts_coins_speed: { family: "JetBrains Mono", weights: [400, 500, 600] }
spacing: "Compact sunny top control bar, full-width framed meadow battle canvas occupying the heart of the viewport, and tactile bottom 10-unit + terrain brush dock that wraps cleanly on 390px mobile."
radius: "14px for meadow stage and puzzle cards with chunky 2px ink borders; full-pill buttons for Fight, Slow-Mo, Follow Cam, and Replay."
---
# Draw Battle Simulator Game — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Sunny Meadow** `#8BC34A` — Primary grassy toybox battlefield
- **Daybreak Sky** `#BEE3F8` — Page backdrop, top horizon clouds, and painted rivers
- **Crimson Team** `#FF5A5F` — Left army tunics, counters, and team banner
- **Cobalt Team** `#3A86FF` — Right army tunics, counters, and team banner
- **Toybox Cream** `#FFFDF7` — Crisp HUD bar, unit palette dock, and puzzle drawer
- **Ink Charcoal** `#1F2937` — Chunky cartoon borders, typography, and shadows
## Typography
- **Game Title & Victory Banners** — Fredoka (OFL), weights 600/700. Self-host the font files.
- **Unit Tooltips & Controls** — Plus Jakarta Sans (OFL), weights 400/500/600/700. Self-host the font files.
- **Unit Counts, Coins & Speed** — JetBrains Mono (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Compact sunny top control bar, full-width framed meadow battle canvas occupying the heart of the viewport, and tactile bottom 10-unit + terrain brush dock that wraps cleanly on 390px mobile.
- Radius: 14px for meadow stage and puzzle cards with chunky 2px ink borders; full-pill buttons for Fight, Slow-Mo, Follow Cam, and Replay.
## Motion
- Live mid-charge cartoon battle running right on frame one with hopping walk cycles, arching arrows, bouncing wizard orbs, and celebratory confetti bursts when units pop.
- Smooth line-sketch preview trail showing exactly where toy soldiers will spawn while dragging a finger or mouse across the meadow.
- Follow-Action Camera smoothly zooms and pans toward the densest active front-line clash.
- Under prefers-reduced-motion, slow animations gently and disable camera shake while preserving full playability.
## Imagery
100% code-drawn HTML5 Canvas 2D sunny meadow terrain (hills, winding rivers, puffy cartoon pine forests), 10 distinct toy soldier archetypes, bouncing orbs, catapult rocks, and confetti particles.
## Tone
Sunny, bouncy, wooden-toybox whimsy—festive confetti pops and cheerful unit silhouettes.
---
Inspired by Draw-to-Deploy Cartoon Battle Sandbox by @nealagarwal — https://neal.fun/
— Prompt by VibeFather · https://vibefather.ai/t/draw-battle-simulator-game · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 课堂历史老师:将 [BRAND] 设为课程名称,把 [RED_TEAM] 和 [BLUE_TEAM] 重命名为正在比较的双方,并涂绘地图以匹配你正在教授的地形。
- 生日派对游戏页面:将 [BRAND] 设为派对标题,用寿星和宾客的名字命名军队,并分享对战链接,让每个人打开相同的设置。
- 游戏工作室的浏览器演示:将 [MAP_NAME] 设为你的世界名称,将双方军队重命名为你的阵营,并使用分享 URL 按钮向媒体和玩家提供可回放的遭遇战。
- 桌面战棋俱乐部的战术训练器:保留 12 个金币预算谜题,将 [RED_TEAM] 和 [BLUE_TEAM] 重命名为俱乐部战团,并涂绘河流和山丘以匹配你常规的桌面布局。
手绘对战模拟器游戏:常见问题
在“手绘对战模拟器游戏”模板中,如何画军队并放置士兵?
在草地左半场拖出线条即可部署 [RED_TEAM] 单位,在右半场拖出线条则部署 [BLUE_TEAM] 单位,实时草稿轨迹会预览士兵的落点。先从底部玩具箱栏中选择 10 种单位中的任意一种,然后划动即可生成一排。选择地形画笔后,同样的拖动手势会切换为在 [MAP_NAME] 上涂绘河流、森林、山丘或草地橡皮擦。
这个对战模拟器中的 12 个金币预算挑战谜题是什么?
“手绘对战模拟器游戏”模板包含 12 个精心设计的战术谜题,每个谜题都有固定的 [BLUE_TEAM] 防守方和 [RED_TEAM] 方严格的金币预算,例如 32 金币的破盾者、40 金币的山羊冲锋、48 金币的渡河和 70 金币的雪人围攻。你可以从谜题抽屉中打开它们,逐一解开,完成星级会保存在浏览器中。
怎么用 AI 做一个手绘对战模拟器游戏?
复制本页的提示词,或者运行 npx vibefather add draw-battle-simulator-game,把 [BRAND]、[MAP_NAME]、[RED_TEAM]、[BLUE_TEAM] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。