用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
港口小镇送货游戏是一个完整的单屏浏览器游戏,而不是一个带 3D 装饰的落地页。玩家驾驶一辆小型送货货车穿过海岸微缩景观,在仓库收集包裹,并在轮班结束前抵达六个发光的门口。电车轨道、路牌、路线线和实时小地图让导航成为玩法的一部分,而分数、计时器、暂停、重开和结果状态则构成了完整的游戏循环。
该模板以 Kimi 为宽泛的 3D 游戏参考,但使用了原创的小镇规划、车辆、界面、配色和英文文案。温暖的低多边形建筑、平面着色水面、柔和跟随的摄像机、车轮运动、送货脉冲和可选的合成音效,让场景具有触感,而无需下载模型或图像资源。布局专为桌面和竖屏手机游玩设计,支持键盘控制、同时多点触控按钮、清晰的操作提示和减少动态效果的行为。
此模板适合独立开发者、开发者和设计师,他们想要一个可玩、能作为静态文件构建的 3D 示例。在一个内容文件中更改品牌、小镇名称、场景、送货物品或回合时长;构建器会重写地名、目标和场景装饰以匹配。一条高山面包店路线提供了第二种内容方向,而无需更改底层道路系统或任务逻辑。提示词还固定了碰撞行为、计分、寻路、自适应渲染质量、声音提示和无障碍覆盖层,因此独立构建能保留相同的可玩结构,而不仅仅是相似的截图。一切都在本地使用 Three.js 和 TypeScript 运行,没有后端、账户、追踪、外部 API 或资源托管依赖。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Harbor Town Delivery Game Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build [BRAND], a complete single-page 3D browser game set in [TOWN_NAME], an invented [SETTING]. The player drives an original low-poly delivery van, collects [DELIVERY_ITEM] at the depot, and delivers them to six glowing doorways before a [ROUND_SECONDS]-second shift ends. The playable town is the first screen and primary visual anchor, not a marketing hero or a decorative backdrop. - Audience: Indie hackers, front-end developers, designers, and creative coding learners who want a polished, adaptable Three.js driving game that works with keyboard and touch and ships as static files. - Goal: Deliver a complete and replayable arcade loop: start shift, drive, follow routes, pick up cargo, deliver to six addresses, manage the countdown, pause or recover, and reach a clear success or timeout result. Keep every control and scene asset local and make the same road and mission system usable with different content values. - Tone: Cozy, coastal, playful, legible, and gently energetic. Use specific local place names and friendly delivery language, with no combat, pedestrians in danger, fail-shaming, real brands, or references to the inspiration. ## Stack - Framework: Vite 6 + TypeScript 5 - Styling: Vanilla CSS - Libraries: three (MIT), lucide (ISC), @fontsource-variable/fredoka (OFL), @fontsource-variable/dm-sans (OFL) - 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, or a full game engine. - Set vite.config base to './', build.outDir to 'dist', build.emptyOutDir to true, and build.sourcemap to false. Enable strict TypeScript checking. - Install only three, lucide, @fontsource-variable/fredoka, and @fontsource-variable/dm-sans as runtime dependencies, plus Vite and TypeScript development dependencies. Import Fredoka 600/700, DM Sans 400/500/600/700, and only the Lucide icons actually used. - Organize the implementation into src/content.ts, main.ts, scene.ts, driving.ts, missions.ts, minimap.ts, ui.ts, audio.ts, and styles.css. Keep all variable values, place names, instructions, button labels, and mission copy in content.ts; scene and UI modules must read from that file. - Use BRAND, TOWN_NAME, SETTING, DELIVERY_ITEM, and ROUND_SECONDS throughout. When values change, rewrite proper nouns, destination names, signs, objectives, and scene dressing to suit the new setting while preserving the road graph, six-job structure, collision dimensions, and UI layout. - Parse ROUND_SECONDS as an integer and clamp it to 60–600 for resilient behavior. Derive a stable localStorage key and decorative random seed from BRAND and TOWN_NAME rather than hard-coding either default name. - Use one index.html with a WebGL canvas and semantic HTML overlays. No router is needed. Wait for document.fonts.ready before creating any CanvasTexture street signs, set their colorSpace to SRGBColorSpace, and cap texture anisotropy at 4. - Seed only decorative placement variations such as shrubs, roof details, and boat bob offsets from TOWN_NAME. Keep roads, mission order, collision shapes, delivery points, and scoring deterministic. ## Variables - [BRAND] — Delivery company (default: "Copper Quay Couriers"). An invented local delivery service; used in the title, start card, depot, and saved-score key. - [TOWN_NAME] — Town name (default: "Bellbuoy Bay"). An invented town name used in the start card, signs, and results copy. - [SETTING] — Setting (default: "harbor town"). The world's theme; change maritime props and destination names when this changes. - [DELIVERY_ITEM] — Delivery item (default: "parcels"). Lowercase plural cargo noun used in objectives, instructions, and results. - [ROUND_SECONDS] — Shift duration (default: "180"). Seconds available to complete all six deliveries. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/harbor-town-delivery-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: "Harbor Town Delivery Game"
colors:
harbor_ink: "#173647"
deep_water: "#397F8C"
shallow_water: "#69ADB0"
mist: "#C7E4DF"
sail_cloth: "#FFF8E8"
warm_stone: "#D7C5A5"
roof_coral: "#DF755C"
parcel_gold: "#F5BE55"
garden_green: "#668C68"
timer_alert: "#C94B45"
typography:
game_title_place_names_score_and_large_results: { family: "Fredoka Variable", weights: [600, 700] }
hud_labels_instructions_buttons_and_body_copy: { family: "DM Sans Variable", weights: [400, 500, 600, 700] }
spacing: "Use a 4 px base unit. Desktop HUD outer gutters are 20 px and panel gaps 12 px; mobile gutters are 10 px and gaps 8 px. Panel padding is 14–18 px, buttons are at least 48 px high, and coarse-pointer controls are at least 64 px. Respect safe-area insets and keep the central driving view unobstructed."
radius: "Use 16 px for HUD and minimap panels, 14 px for modal cards, 12 px for buttons, and fully rounded small badges. The 3D world uses crisp faceted geometry rather than rounded UI-like forms; only the van body gets modest bevels."
---
# Harbor Town Delivery 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
- **Harbor ink** `#173647` — Top HUD, primary text on pale panels, van tires, and dark UI controls
- **Deep water** `#397F8C` — Main sea plane and minimap water
- **Shallow water** `#69ADB0` — Low-poly water facets, harbor shallows, and pickup markers
- **Mist** `#C7E4DF` — Sky, scene fog, and pale blue UI accents
- **Sail cloth** `#FFF8E8` — HUD cards, modal surfaces, lane marks, and light text on Harbor ink
- **Warm stone** `#D7C5A5` — Island ground, curbs, and dock timbers
- **Roof coral** `#DF755C` — Selected roofs, van cargo box, and primary start button
- **Parcel gold** `#F5BE55` — Delivery-door glow, active route, score highlights, and action button
- **Garden green** `#668C68` — Trees, shrubs, grassy plots, and success accents
- **Timer alert** `#C94B45` — Final 30-second timer state and timeout messaging, always paired with text
## Typography
- **Game title, place names, score, and large results** — Fredoka Variable (OFL), weights 600/700. Self-host the font files.
- **HUD labels, instructions, buttons, and body copy** — DM Sans Variable (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use a 4 px base unit. Desktop HUD outer gutters are 20 px and panel gaps 12 px; mobile gutters are 10 px and gaps 8 px. Panel padding is 14–18 px, buttons are at least 48 px high, and coarse-pointer controls are at least 64 px. Respect safe-area insets and keep the central driving view unobstructed.
- Radius: Use 16 px for HUD and minimap panels, 14 px for modal cards, 12 px for buttons, and fully rounded small badges. The 3D world uses crisp faceted geometry rather than rounded UI-like forms; only the van body gets modest bevels.
## Motion
- Run gameplay with a fixed 1/60-second simulation step and capped frame delta. Rotate wheels with actual speed, steer front wheels visually, lean the cargo body up to 4 degrees into turns, and add only a tiny suspension settle after collisions; never use camera shake.
- Damp the follow camera with frame-rate-independent exponential smoothing. Keep the van framed just below center and look 4 world units ahead so corners remain readable.
- Animate low-poly water facets, tiny foam strips, flags, and boats subtly. Pickup and destination rings breathe between 1.0 and 1.08 scale over 1.4 seconds; delivery confetti uses 18 small paper rectangles for 700 ms.
- Use 160–240 ms fades and 8 px translations for panels and toasts. During the final 30 seconds, change the timer label and color and pulse it gently once per second rather than flashing the whole screen.
- With prefers-reduced-motion, stop decorative water, flags, boats, idle pulses, camera bob, and confetti; use instant panel changes and static route markers. Essential vehicle and camera movement remains direct and restrained because it is required to play.
## Imagery
Create every visible world element from original Three.js primitives, extruded shapes, and BufferGeometry: the van, island, roads, tram rails, houses, depot, lighthouse-like harbor beacon, piers, boats, shrubs, signs, and markers. Use flat shading, visible low-poly facets, soft shadows, and a warm morning light setup. No photographs, downloaded models, HDRIs, image textures, recognizable landmarks, vehicle designs, characters, or logos. The live 3D scene itself is the visual anchor; the minimap and street signs are drawn locally on canvas.
## Tone
Cozy, coastal, playful, legible, and gently energetic. Use specific local place names and friendly delivery language, with no combat, pedestrians in danger, fail-shaming, real brands, or references to the inspiration.
---
Inspired by Harbor Town Delivery Game — https://www.kimi.com/showcases/3dmake
— Prompt by VibeFather · https://vibefather.ai/t/harbor-town-delivery-game · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 本地面包店:将 BRAND 设置为你的店铺,TOWN_NAME 设置为你的街区,DELIVERY_ITEM 设置为糕点,并将目的地名称替换为常客所在的街道。
- 海岸旅游局:保留港口 SETTING,将六个门口以码头和灯塔重新命名,并将小地图用作有趣的城镇地图。
- 独立游戏作品集:将 BRAND 设置为你的工作室,缩短 ROUND_SECONDS 以进行快速演示,并将结果文案指向你的其他可玩项目。
- 团队建设破冰活动:使用虚构的 TOWN_NAME,将 DELIVERY_ITEM 设置为办公用品,并分享静态构建以进行限时午休挑战。
港口小镇送货游戏:常见问题
如何更改港口小镇送货游戏模板中的小镇名称、品牌和送货物品?
港口小镇送货游戏模板将所有专有名词保存在一个内容文件中。将 BRAND 设置为你的送货公司,TOWN_NAME 设置为虚构的小镇,SETTING 设置为世界主题,DELIVERY_ITEM 设置为小写复数货物名词,ROUND_SECONDS 设置为轮班时长。构建器随后会重写地名、标志、目标和场景装饰以匹配,而道路图、六单任务结构和计分保持不变。
港口小镇送货游戏需要后端、账户或下载的 3D 模型吗?
不需要。港口小镇送货游戏模板完全在本地使用 Three.js 和 TypeScript 运行,并构建为静态文件,没有后端、账户、追踪、外部 API 或资源托管依赖。所有建筑、水面、货车和界面都在代码中生成,声音是合成的,因此没有需要托管的下载模型或图像资源。
怎么用 AI 做一个港口小镇送货游戏?
复制本页的完整提示词(Pro),或者运行 npx vibefather add harbor-town-delivery-game,把 [BRAND]、[SETTING]、[TOWN_NAME]、[DELIVERY_ITEM] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。