用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
《岛屿邮路游戏》是一款完整的单屏浏览器游戏,适合喜欢安静旅程而非战斗或倒计时的玩家。一位原创的低多边形信使从小邮局旁出发,沿着分岔的岛屿小径前行,收集风、河、山三枚印章。这三处发现将打开一扇木制神庙大门,让一段短短的散步变成一条清晰而令人满足的投递路线。
可游玩的岛屿从第一帧起就是视觉锚点。多面体地形、铜色枝叶、蜿蜒溪流、木桥、路标和山顶大门全部由 Three.js 几何体搭建。轻柔跟随的相机、关节式行走的信使、飘落的树叶、盖章仪式以及可选的合成音效,为这个微缩世界增添了温度,且无需下载任何模型、贴图或音频文件。界面更像一本紧凑的野外日志,而非传统的游戏仪表盘。
路线允许按任意顺序探索。常驻任务日志追踪全部三座神龛,路标和选定的目标辅助寻路,已收集的进度会保存在本地。行走、碰撞恢复、大门完成、暂停、重开和帮助状态被规定为一个连贯的游戏循环。键盘玩家使用 WASD 或方向键以及一个情境交互键;触屏玩家获得一个模拟摇杆和一个独立的盖章按钮,两者可同时工作。
此模板适合需要可改编的 3D 探索示例、并以静态文件形式发布的独立开发者、开发者和设计师。五个变量可更改邮政品牌、岛屿名称、场景、受众和标语,而一个内容文件容纳所有名称、目标、路标和说明。一座雾蒙蒙的常青岛提供了备选内容方向,而无需改变路线逻辑。提示词还固定了地形坐标、移动速度、相机行为、触屏输入、自适应画质、减少动态效果行为和可访问性,使独立构建产出相同的可玩结构,而不仅仅是相似的地貌。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Island Postal Route Game Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build [BRAND], an original English-language third-person 3D exploration game on [ISLAND_NAME], an invented [SETTING], for [AUDIENCE]. The default tagline is 'Three stamps. One open gate.' The player guides an original postal courier on foot, discovers wind, river, and mountain shrines in any order, collects one stamp at each, and opens a northbound temple gate for the final delivery. The entire product is one playable static page at index.html, with a live island as the first-screen visual anchor and no marketing landing page. - Audience: Indie hackers, front-end developers, designers, creative-coding learners, and casual players who enjoy gentle exploration. The interface must welcome first-time 3D players with short instructions, forgiving collisions, clear signs, and no timers or combat while keeping the world data and game logic straightforward to adapt. - Goal: Deliver a complete low-pressure game loop: walk from the post house, follow paths, discover and activate three shrines in any order, see each stamp enter the quest log, open the temple gate after the third stamp, cross the threshold, and reach a completion panel with replay and reset controls. Preserve collected stamps on the current device and make keyboard and touch play equivalent. - Tone: Gentle, pastoral, curious, tactile, and quietly optimistic. Use concise original US English field-journal copy, friendly wayfinding, and small environmental details. There is no combat, health bar, countdown, fail state, punitive copy, epic fantasy lore, paper-crane mascot, or reference to an existing game or AI product. ## Stack - Framework: Vite 6 + TypeScript 5 - Styling: Vanilla CSS - Libraries: three (MIT), lucide (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/dm-sans (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Scaffold Vite's vanilla TypeScript template with scripts dev=vite, build=tsc && vite build, and preview=vite preview. Do not add React, a physics engine, a full game engine, or another rendering framework. - Set vite.config base to './', build.outDir to 'dist', build.emptyOutDir to true, and build.sourcemap to false. Enable strict TypeScript checking and produce only static files in dist/. - Install only three, lucide, @fontsource-variable/fraunces, and @fontsource-variable/dm-sans as runtime dependencies, plus Vite and TypeScript development dependencies. Import Fraunces 600/700, DM Sans 400/500/600/700, and only the Lucide icons actually used. - Organize the implementation into src/content.ts, main.ts, terrain.ts, scene.ts, player.ts, quests.ts, controls.ts, ui.ts, audio.ts, and styles.css. Keep pure route and collision data separate from Three.js rendering. - Put BRAND, ISLAND_NAME, SETTING, AUDIENCE, TAGLINE, shrine names, sign text, objectives, instructions, dialog copy, button labels, and aria copy in src/content.ts. Rewrite setting-specific names, foliage accents, and scene dressing when variables change while preserving coordinates, three-stamp mechanics, and UI structure. - Derive a stable localStorage key and decorative random seed from BRAND and ISLAND_NAME. Save only collected shrine IDs, completion status, and sound preference; restore collected stamps and the open gate on reload but return the courier to the post house rather than restoring an unsafe position. - Use one index.html with a WebGL canvas and semantic HTML overlays. Wait for document.fonts.ready before creating any CanvasTexture signs. Bundle every font, script, icon, and generated visual locally; no remote assets or APIs. - Seed only decorative trees, shrubs, rocks, and leaf offsets. Keep path splines, shrine positions, temple coordinates, collision shapes, and quest results deterministic. Cap rendering work, pause when hidden, and dispose all geometries, materials, textures, listeners, audio nodes, and the renderer on teardown. ## Variables - [BRAND] — Postal service name (default: "Amberwick Post"). An invented small postal service used in the title, journal, post house, and saved-progress key. - [ISLAND_NAME] — Island name (default: "Amberwick Isle"). An invented island name used in the welcome copy, route journal, and completion panel. - [SETTING] — Island setting (default: "autumn woodland island"). The world's season and landscape theme; adapt foliage accents and scene dressing without changing the route. - [AUDIENCE] — Player audience (default: "players who enjoy quiet exploration"). The intended players, used naturally in the help introduction rather than as metadata. - [TAGLINE] — Game tagline (default: "Three stamps. One open gate."). A short original line shown below the game name and repeated on completion. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/island-postal-route-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.
Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Island Postal Route Game"
colors:
forest_ink: "#24332D"
letter_paper: "#FFF7E8"
aged_parchment: "#F1E2C2"
trail_ochre: "#D7BC8F"
moss: "#6F8154"
pine: "#355849"
copper_leaf: "#B85C3F"
harvest_amber: "#D88A3D"
river_blue: "#5F96A0"
morning_mist: "#D9E4D5"
stamp_gold: "#F2C66D"
journal_muted: "#68766C"
typography:
game_title_shrine_names_sign_text_and_completion_heading: { family: "Fraunces Variable", weights: [600, 700] }
hud_labels_quest_entries_instructions_buttons_and_status: { family: "DM Sans Variable", weights: [400, 500, 600, 700] }
spacing: "Use a 4px base unit. The game is fixed to 100dvh with no document scrolling. Desktop outer gutters are 20px, panel gaps 12px, and card padding 16px. The quest journal is 300px wide. Keep the center and lower-middle view clear for the courier. Mobile gutters are 10px, panel padding 12px, ordinary buttons at least 44px high, the joystick 124px wide, and the action button 76px wide. Respect safe-area insets on every edge."
radius: "Use 16px for journal and modal cards, 12px for compact controls, 10px for small badges, and circular stamp seals. Give cards a 1px Forest ink border and a restrained 3px parchment shadow rather than glass blur. Keep world geometry faceted and angular, with modest bevels only on the courier, post house, and gate timbers."
---
# Island Postal Route 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
- **Forest ink** `#24332D` — Primary text, dark buttons, courier trousers, and journal outlines
- **Letter paper** `#FFF7E8` — Quest cards, dialogs, sign faces, and light text on dark controls
- **Aged parchment** `#F1E2C2` — Secondary panels, path-edge details, and inactive stamp paper
- **Trail ochre** `#D7BC8F` — Walking paths, bridge timbers, and sandy island edges
- **Moss** `#6F8154` — Main grass, low shrubs, and soft environmental accents
- **Pine** `#355849` — Distant foliage, tree trunks, and deep landscape contrast
- **Copper leaf** `#B85C3F` — Autumn crowns, roof accents, and small route flags
- **Harvest amber** `#D88A3D` — Courier jacket, tracked-objective highlights, and primary buttons
- **River blue** `#5F96A0` — Stream facets, river-stamp details, and cool atmospheric contrast
- **Morning mist** `#D9E4D5` — Sky, scene fog, and pale distant terrain
- **Stamp gold** `#F2C66D` — Earned stamp seals, gate-ready glow, and completion accents
- **Journal muted** `#68766C` — Secondary labels, distance hints, and inactive objectives on Letter paper
## Typography
- **Game title, shrine names, sign text, and completion heading** — Fraunces Variable (OFL), weights 600/700. Self-host the font files.
- **HUD labels, quest entries, instructions, buttons, and status** — DM Sans Variable (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use a 4px base unit. The game is fixed to 100dvh with no document scrolling. Desktop outer gutters are 20px, panel gaps 12px, and card padding 16px. The quest journal is 300px wide. Keep the center and lower-middle view clear for the courier. Mobile gutters are 10px, panel padding 12px, ordinary buttons at least 44px high, the joystick 124px wide, and the action button 76px wide. Respect safe-area insets on every edge.
- Radius: Use 16px for journal and modal cards, 12px for compact controls, 10px for small badges, and circular stamp seals. Give cards a 1px Forest ink border and a restrained 3px parchment shadow rather than glass blur. Keep world geometry faceted and angular, with modest bevels only on the courier, post house, and gate timbers.
## Motion
- Run gameplay with a fixed 1/60-second simulation step and capped frame delta. Use a simple articulated walk cycle driven by actual travel speed, with opposing arm and leg swings and no root sliding.
- Damp the follow camera and courier heading with frame-rate-independent exponential smoothing. Keep the courier just below center and look slightly ahead along the current path; never use camera shake or forced cinematic camera moves.
- Animate water facets, ribbon chimes, treetop sway, and a few falling leaves at low amplitude. Untracked shrine rings breathe gently, while the tracked shrine uses a steady vertical marker and a readable DOM objective.
- Stamp collection presses the seal inward over 120ms, draws a circular postmark over 260ms, and releases 16 small leaf or paper fragments for 700ms. The two gate leaves swing open over 1.4 seconds after the third stamp without taking control away.
- Use 160–220ms fades and at most 8px translation for panels, help, pause, and completion. With prefers-reduced-motion, stop decorative foliage, water, falling leaves, idle pulses, particles, and panel translations; make stamp and gate state changes immediate while retaining essential walking movement.
## Imagery
Create every visible world element from original Three.js primitives, extruded shapes, custom BufferGeometry, CSS, and inline SVG: the courier, satchel, post house, terrain, paths, trees, river, bridge, three shrines, temple gate, signs, stamps, and particles. Use flat shading, visible facets, soft contact shadows, warm morning light, and Morning mist fog. The default scene uses Moss, Pine, Copper leaf, and Harvest amber; adjust foliage accents when SETTING changes. No photographs, downloaded models, HDRIs, image textures, recognizable landmarks, existing characters, or logos. The live third-person island itself is the first-screen visual anchor; stamps and signs are drawn locally and contain only original English copy.
## Tone
Gentle, pastoral, curious, tactile, and quietly optimistic. Use concise original US English field-journal copy, friendly wayfinding, and small environmental details. There is no combat, health bar, countdown, fail state, punitive copy, epic fantasy lore, paper-crane mascot, or reference to an existing game or AI product.
---
Inspired by Island Postal Route Game — https://www.kimi.com/showcases/3dmake
— Prompt by VibeFather · https://vibefather.ai/t/island-postal-route-game · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 地方旅游局:将 ISLAND_NAME 和 SETTING 设为一个感觉真实的海岸或森林目的地,并将神龛名称改写为游客可以沿路线打卡的地标。
- 童书发布:将 BRAND 设为书中的邮政服务,让信使的印章与章节对应,并以作者的口吻重写野外日志文案。
- 博物馆家庭路线:将 AUDIENCE 设为来访家庭,将三座神龛以展厅站点重新命名,并利用完成面板指向实体展览。
- 工作室作品集:将 BRAND 设为你自己的名字,保留秋日岛屿,并替换任务日志文案以描述你想展示的探索和渲染工作。
岛屿邮路游戏:常见问题
如何在《岛屿邮路游戏》中更改岛屿名称、邮政品牌和场景?
《岛屿邮路游戏》模板暴露五个变量:BRAND、ISLAND_NAME、SETTING、AUDIENCE 和 TAGLINE。将 BRAND 设为你的邮政服务名称,ISLAND_NAME 设为你的岛屿,SETTING 设为季节和景观主题。提示词将神龛名称、路标文字、目标和说明保留在一个内容文件中,因此你应连同变量一起重写这些内容,而不是编辑游戏逻辑。
怎么用 AI 做一个岛屿邮路游戏?
复制本页的完整提示词(Pro),或者运行 npx vibefather add island-postal-route-game,把 [BRAND]、[SETTING]、[TAGLINE]、[AUDIENCE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。