Claude Fable 5.2
3D 无尽跑酷:日落时分,一台维修机器人在高架地铁线上躲避清扫无人机的追赶
Duskline(暮色线)是一款 3D 无尽跑酷,舞台是日落时分城市上空的一条高架地铁线。你是一台小小的维修机器人,一架清扫无人机想把你赶下它的轨道。在三条车道之间切换,跳过低栏,滑过高栏,顺着坡道跑上列车车顶,躲开迎面开来的列车,而速度一直在上升。
撞一次,无人机就会逼近;在它退开之前再撞一次,你就被抓住了。
Claude Fable 5.2 根据一条提示词写成,提示词要求不用任何库、CDN 和素材,所以 WebGL 渲染器是手写的。带城市剪影的落日天空、塔楼里亮着的窗户、远处地面的路灯网格、列车和机器人都由代码生成,声音(列车鸣笛、无人机的哔哔声、收集火花)用 Web Audio 合成。整个游戏是一个 91 KB 的 HTML 文件,电脑上用键盘、手机上用滑动操作,帧率下降时会自动降低画质。
作者 Raúl Berná,使用 Claude Fable 5.2 制作。
| 道具 | 效果 |
|---|---|
| 磁铁 | 9 秒内把附近的火花吸过来 |
| 护盾 | 完全抵消一次撞击,无人机也不会逼近 |
| 输入 | 作用 |
|---|---|
| ← / → 或 A / D | 换道 |
| ↑ 或 W | 跳 |
| ↓ 或 S | 滑铲 |
| 左 / 右 / 上 / 下滑动 | 触屏上的对应操作 |
| P 或 Esc | 暂停 |
| 空格、回车或点击 | 开始 / 再来一局 |
Duskline 是一个独立的单文件 HTML 游戏(91 KB),托管在本站。点击开始游戏即可在隔离沙盒中运行。也可以下载这个 .html 文件,用任何现代浏览器离线打开,或者在「查看源码」页签里逐行阅读代码。
技术上它使用了 WebGL。
手机上点击开始后会直接全屏,并显示游戏自带的触屏按键。
Raúl Berná交给 Claude Fable 5.2 的原始指令(保留原文)。可以在上方「查看提示词」页签一键复制。
Make a fast, fun 3D endless runner in a single HTML file, with nothing external: no libraries, no CDNs and no assets, so write the WebGL yourself. You are a small maintenance robot escaping along an elevated metro line above a city at sunset. A sweeper drone chases you. Three lanes: swipe or press left/right to change lane, up to jump, down to slide. Trains come at you in all lanes, some parked, some moving towards you; low barriers you jump, high ones you slide under. You can run on top of train roofs and reach them with ramps. Hit something once and the drone closes in; hit again before it backs off and it catches you. Collect energy sparks along the track. Two power-ups: a magnet that pulls sparks in, and a shield that absorbs one hit. Speed keeps rising, so a good run lasts about 2 minutes. Show score, sparks and best score (saved locally); restart is instant. Make it feel great: smooth lane changes, camera behind and slightly above, speed lines, screen shake on hits, satisfying sounds made with Web Audio. Works on desktop (arrow keys or WASD) and on mobile (swipes), and lowers quality automatically if the frame rate drops. All text in English.
第一次撞击会让它逼近 6.5 秒。这段时间里再撞到任何东西就会被抓住;撑过去,无人机就会退开。
每跑 1 米得 1 分,每个能量火花加 10 分。最高分保存在浏览器里。
能。左右滑动换道,上滑跳,下滑滑铲。横屏竖屏都可以。
没有。提示词要求不用库、CDN 和素材,所以 Claude Fable 5.2 自己在一个 91 KB 的文件里写了 WebGL 渲染器、模型和声音。
免费。Duskline 直接在浏览器里运行,不用下载、注册或安装。它是托管在本站的单个 HTML 文件。
可以,游戏自带触屏操作。横屏、竖屏都可以玩。
Duskline 由 Raúl Berná 使用 Claude Fable 5.2 制作。
完整提示词就公布在本页的提示词区和「查看提示词」页签里(保留原文)。
可以。它是一个独立的 HTML 文件(91 KB),在「查看源码」页签下载后,用任何现代浏览器打开即可,离线也能玩。
七人制 3D 足球:裁判、越位、红黄牌、点球和战术一应俱全,只有一个 HTML 文件,手机也能玩。