跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。

关于这个模板

霓虹悬浮车城市跑酷是一款单屏街机驾驶游戏。页面从夜间峡谷展开:一辆低矮的楔形悬浮车停在发光高塔之间的湿沥青路面上。悬浮高度固定不变。车辆滑行、在车道内变向,可以提速,也能消耗涌流能量槽冲过拱门。无人机一碰就削减车架。水晶能增加运载量。赛道固定为 1.5 公里,终点是一个泊位。车架耗尽则提前结束。结算页列出运载量、水晶、拱门、峰值速度、剩余车架和时间,然后提供再次挑战同一车道的机会。

琥珀色路缘和紫罗兰色窗户是唯一的霓虹配色组合。深色金属路面加上一道流光层,看起来就像湿沥青。桌面端使用克制的泛光效果,手机端则关闭,小屏幕上雾气会更浓。速度和车架显示在左下方,涌流沿底部排列,运载量和泊位距离在右上方,一条垂直缎带显示前方车道。桌面端用键盘操作。手机端提供可同时按住的大按钮。减少动态效果会关闭泛光、颠簸和镜头震动,但保留转向和障碍物。

默认文案是一场夜间快递班次:Lumenlane,Amberwharf 下层码头的 4 号工位,一辆叫 Kite Skiff 的悬浮车,中继水晶,以及一个屋顶泊位。Mara Quill 是调度员。所有名称都放在一个内容文件里。第二组数值可以把同一条车道变成打捞班次,而网格、颜色、摆放位置和碰撞数字保持不变。它适合想要一款静态 Three.js 游戏、通过改文字就能换皮的开发者和独立黑客。没有服务器,也没有下载的模型。字体自托管,favicon 用代码绘制,构建产物是关闭了 source map 的压缩静态文件。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# Neon Hovercar City Runner

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
Build [BRAND], a single-page night-canyon arcade game in the invented city [CITY]. The player pilots [VEHICLE], a code-built wedge hovercar locked to one hover height, up a wet reflective lane. Pocket [CARGO], pass surge arches, dodge drones, and reach the [DESTINATION] before the frame meter hits zero. [DISPATCHER] is the dispatcher named on the start card. The first screen is the live canyon with the hovercar already in it.

- Audience: Indie hackers and developers who want a finished static Three.js game, with keyboard and touch controls, a readable corner HUD, and words that can change without redrawing the course.
- Goal: Ship one replayable run of about a minute: launch from the canyon, bend the lane, push pace, spend surge, pocket cargo, survive drones and wall scrapes, then land on a results card for a reached berth or an empty frame. The course, meshes, palette, and hit numbers stay fixed when the variables change.
- Tone: Night-shift, concrete, and dry. Short US English. The failure is a machine losing its frame, not an injury. No gore, no real brands, and no slogans taken from other games.

## Stack
- Framework: Vite 6 + TypeScript 5
- Styling: Vanilla CSS
- Libraries: three (MIT), lucide (ISC), @fontsource/rajdhani (OFL-1.1), @fontsource-variable/outfit (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. Scripts: dev=vite, build=tsc && vite build, preview=vite preview. Do not add React, a physics engine, a game engine, or a postprocessing npm package.
  - In vite.config set base to './', build.outDir to dist, build.emptyOutDir to true, and build.sourcemap to false. In tsconfig set strict true, target ES2022, and noEmit true so tsc only typechecks.
  - Install only three, lucide, @fontsource/rajdhani, and @fontsource-variable/outfit as dependencies, plus vite and typescript as devDependencies. Import WebGLRenderer, FogExp2, and PMREMGenerator from three. Import EffectComposer, RenderPass, and UnrealBloomPass from three/examples/jsm/postprocessing/EffectComposer.js, RenderPass.js, and UnrealBloomPass.js. Those example modules ship with three under the MIT license.
  - Import Rajdhani 500, 600, and 700 from @fontsource/rajdhani, and Outfit Variable from @fontsource-variable/outfit/wght.css. Use the family names Rajdhani and Outfit Variable. Do not load any font from a CDN.
  - Copy only the SVG path data for pause, play, rotate-ccw, volume-2, volume-x, chevron-left, chevron-right, circle-help, and x from the installed lucide package into src/icons.ts. Render them as inline SVG at stroke 1.75. Do not add lucide-react.
  - Use one index.html with a full-viewport canvas and semantic HTML overlays. No router and no second page. Set the document title from content.ts to BRAND followed by an em dash and CITY.
  - Split the code into src/content.ts, src/track.ts, src/canyon.ts, src/skiff.ts, src/sim.ts, src/hud.ts, src/minimap.ts, src/audio.ts, src/icons.ts, src/main.ts, and src/styles.css. Every visible string lives in content.ts. Every course number lives in track.ts. Other modules import those files and do not hard-code names or placements.
  - When BRAND, CITY, VEHICLE, CARGO, DESTINATION, or DISPATCHER change, rewrite the start card, pilot notes, signs, results sentences, and flank decal so none of the default names remain. Keep the sentence count, the control mapping, the mesh, the palette, and the course.
  - Derive the localStorage key from a slug of BRAND: lowercase, spaces become hyphens, drop other punctuation, then prefix lane-best-haul:. Store only the best haul integer. Do not hard-code Lumenlane into the key.
  - Cap device pixel ratio at 1.75 on the desktop tier and 1.25 on the phone tier. Pause the simulation when the document is hidden and show the pause card. Do not auto-resume when it becomes visible again.
  - Before finishing, play the default run at 1440 by 900 and at 390 by 844: launch, bend, push pace, spend surge, pocket a crystal, pass an arch, scrape a wall, take a drone hit, reach the berth, empty the frame on a second run, pause, and toggle reduced motion. The console must stay empty.

## Variables
- [BRAND] — Game name (default: "Lumenlane"). One invented word shown as the large start-card title. Never a real company or an existing game.
- [CITY] — Canyon city (default: "Amberwharf"). One invented place name used on the eyebrow, the first sign, and the title.
- [VEHICLE] — Hovercar name (default: "Kite Skiff"). Two or three invented words, under 18 characters, painted on the flank and used in sentences. The mesh does not change.
- [CARGO] — Pickup name (default: "relay crystals"). A lowercase plural noun phrase of two words, used in the headline and the start-card body.
- [DESTINATION] — Finish name (default: "Roof Berth"). Two invented words for the pad at the end of the lane.
- [DISPATCHER] — Dispatcher (default: "Mara Quill"). An invented first and last name. Not a real person or a public figure.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/neon-hovercar-city-runner 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 仍然免费。

$9/月起 · 年付和终身正在上线特惠

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "Neon Hovercar City Runner"
colors:
  canyon_night: "#07060C"
  asphalt: "#121018"
  shoulder: "#0C0B10"
  tower_body: "#14121C"
  fog_violet: "#1C1428"
  amber: "#F0A202"
  iris: "#6E5BFF"
  chartreuse: "#D6F25C"
  bone: "#F6F1E8"
  muted_lilac: "#A39BB4"
  panel: "#100E18"
  line: "#2A2636"
  coral: "#FF5C3A"
typography:
  game_title_hud_numerals_meter_labels_and_results_titles: { family: "Rajdhani", weights: [500, 600, 700] }
  body_copy_buttons_pilot_notes_and_the_small_pace_caption: { family: "Outfit Variable", weights: [400, 500, 600] }
spacing: "Use a 4 px base. Desktop HUD gutters are 20 px. Mobile gutters are 10 px plus the safe-area inset. Cards use 22 px padding. Buttons are at least 48 px tall. Coarse-pointer controls are at least 68 px. Keep the chase view clear of the cards: the desktop start card occupies the left 400 px and leaves the right half of the canyon open."
radius: "Cards and the lane ribbon use 16 px. Buttons use 12 px. The surge key is a circle. Meter tracks use 999 px. World geometry stays hard-edged except the two lamp rings, which are toruses."
---

# Neon Hovercar City Runner — 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
- **Canyon night** `#07060C` — Page background, renderer clear color, and favicon ground
- **Asphalt** `#121018` — Wet road surface
- **Shoulder** `#0C0B10` — Ground between the curbs and the towers
- **Tower body** `#14121C` — Canyon tower faces
- **Fog violet** `#1C1428` — Exponential fog only. Not the curb color
- **Amber** `#F0A202` — Curbs, outrigger ring lamps, surge fill, primary button, and arch posts
- **Iris** `#6E5BFF` — Window grids and the hover slit under the car. The second neon, never a curb
- **Chartreuse** `#D6F25C` — Arch crossbars and cleared-arch ticks on the ribbon
- **Bone** `#F6F1E8` — Primary text, pace numerals, and the berth pad edge
- **Muted lilac** `#A39BB4` — Secondary labels and pilot-note body text
- **Panel** `#100E18` — Start, pause, notes, and results cards
- **Line** `#2A2636` — Card borders, empty meter tracks, and ribbon border
- **Coral** `#FF5C3A` — Drone rims, low-frame segments, and hit feedback. Never a full-screen flash

## Typography
- **Game title, HUD numerals, meter labels, and results titles** — Rajdhani (OFL), weights 500/600/700. Self-host the font files.
- **Body copy, buttons, pilot notes, and the small pace caption** — Outfit Variable (OFL), weights 400/500/600. Self-host the font files.

## Spacing & shape
- Spacing: Use a 4 px base. Desktop HUD gutters are 20 px. Mobile gutters are 10 px plus the safe-area inset. Cards use 22 px padding. Buttons are at least 48 px tall. Coarse-pointer controls are at least 68 px. Keep the chase view clear of the cards: the desktop start card occupies the left 400 px and leaves the right half of the canyon open.
- Radius: Cards and the lane ribbon use 16 px. Buttons use 12 px. The surge key is a circle. Meter tracks use 999 px. World geometry stays hard-edged except the two lamp rings, which are toruses.

## Motion
- Simulate at a fixed 1/60 second step, accumulate time, and run at most three steps per frame. Cap the incoming delta at 0.05 seconds.
- The hovercar glides at 26 m/s, rises toward 46 m/s while pace is held, and adds a 1.35 second surge kick. Steering eases across the lane. The chase camera lags behind the road tangent.
- Desktop bloom is static, not pulsing. Phone tier removes bloom and tightens fog. Reduced motion also removes bloom, hover bob, streak scroll, arch pulse, crystal spin, and the hit kick.
- Cards fade in over 160 ms and move no more than 8 px. Reduced motion makes those changes instant. Button presses scale to 0.96 while held.
- A drone hit or a wall scrape flashes only the frame segments for 120 ms. Do not flash the whole viewport.

## Imagery
Build the canyon, the hovercar, the arches, the drones, the crystals, the berth, the wet-road streak, and the favicon from original Three.js geometry and canvas textures. No photographs, no generated images, no downloaded models, no HDRI files, and no sky texture. The live canyon is the first-screen anchor. People are not shown. The only text inside the 3D view is the vehicle name on the flank and three short signs.

## Tone
Night-shift, concrete, and dry. Short US English. The failure is a machine losing its frame, not an injury. No gore, no real brands, and no slogans taken from other games.

---
Inspired by neoncity one-shot hovercar game by @JulianGoldieSEO — https://agentos.guide/grok-4-7-agent-os
— Prompt by VibeFather · https://vibefather.ai/t/neon-hovercar-city-runner · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 独立街机游戏工作室:把 BRAND 设为你的游戏名,CITY 设为你的虚构街区,VEHICLE 设为你的载具,然后重写开始卡片和驾驶员笔记。
  • 开发者作品集项目:保留霓虹峡谷,但把 CARGO 设为你的项目名称,DESTINATION 设为你的联系页面,这样每收集一颗水晶都代表一个已交付的构建。
  • 品牌活动或线下活动页面:把 DISPATCHER 设为主办方名称,DESTINATION 设为场地,然后重写结算语句,邀请玩家去展台。
  • 桌游或世界观网站:把 CITY 和 VEHICLE 设为你的设定名称,把驾驶员笔记改写成世界观内的简报文本,赛道和障碍物保持不动。

霓虹悬浮车城市跑酷:常见问题

我想把霓虹悬浮车城市跑酷游戏换成自己的品牌,具体要改哪些地方?

霓虹悬浮车城市跑酷模板把所有可见文字放在一个内容文件里,由六个变量驱动:BRAND、CITY、VEHICLE、CARGO、DESTINATION 和 DISPATCHER。改完这些,再重写开始卡片、驾驶员笔记、标牌、结算语句和侧翼贴花,确保不残留任何默认名称。网格、配色、摆放位置和碰撞数字保持不变,所以车道玩起来完全一样。

怎么用 AI 做一个霓虹悬浮车城市跑酷?

复制本页的完整提示词(Pro),或者运行 npx vibefather add neon-hovercar-city-runner,把 [CITY]、[BRAND]、[CARGO]、[VEHICLE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。