跳到主内容
@wquguru
精选88Hacker News Best(web_list)技巧与观点多源精选 ×9

Fable 5.2 一键生成完整街机游戏实录

Fable 5.2 one-shotted my nephew's dream game

原文
发到 X
推荐理由

Agent 开发者的硬核实战参考,展示了 Fable 5.2 处理多模态资产生成与自动化测试的完整工作流,值得收藏研究。

Fable 5.2 One-Shotted My Nephew's Dream Game

Fable 5.2 一击必杀了我侄子的梦想游戏

LLMs can make complete multi-level games that are fun.

LLM 能制作出完整且有趣的多关卡游戏。

Lex Toumbourou · Nov 10, 2026

Lex Toumbourou · 2026年11月10日

GameProjectsCodingAgents

TL;DR - Fable 5.2 one-shotted my nephew's dream game from a bunch of drawings, and it's a lot of fun. You can try it here.

TL;DR - Fable 5.2 仅凭一堆画作就一键完成了我侄子的梦想游戏,而且非常好玩。你可以在这里试玩。

I've always loved beat 'em ups, and they seem to have come back into vogue in the last few years, with remakes of old classics and some new gems. When my nephews visit, I use it as an excuse to try them out.

我一直很喜欢清版动作游戏(beat 'em ups),近年来它们似乎又流行起来了,既有经典老作的重制版,也有几款新出的佳作。侄子们来访时,我就以此为借口尝试一下。

Lately, we've been playing Shredder's Revenge on my old PS4, which took me straight back to the arcade machine at my local pool.

最近,我们在我那台旧 PS4 上玩《Shredder's Revenge》,这让我瞬间回到了当地游泳池旁的街机厅。

One day, my younger nephew, Aiden, came to me with a proposal. Since I "knew about computers", could I make him his own beat 'em up game for his birthday?

有一天,我的小侄子 Aiden 来找我提了个建议。既然我“懂电脑”,能不能在他生日时给他做一个属于自己的清版动作游戏?

He had already drawn up the game design docs. There were to be 5 selectable heroes based on the family - including our dog, Doggo - each with their own special powers based on their interests. He had 12 bosses drawn up and a loose outline of a story. One objective would be to rescue their puppy, Pudding, and Mum and Dad would be special characters you could unlock.

他已经画好了游戏设计文档。游戏中有 5 名可选英雄,基于家庭成员设定——包括我们的狗 Doggo——每位英雄都拥有基于其兴趣的特殊能力。他还设计了 12 个 Boss 和一份粗略的故事大纲。其中一个目标是救出他们的宠物狗 Pudding,而爸爸妈妈则是可以解锁的特殊角色。

Heroes | The Battle Wagon | The villains, numbered 1st to 12th

英雄 | 战斗马车 | 反派,编号从第 1 到第 12

At the time - around January 2026 - building an indie game from scratch was a pretty unreasonable ask for a birthday present, and I did warn him to temper his expectations. Still, I thought it would be a fun exercise to test the agentic tools at my disposal.

当时大约是 2026 年 1 月,从零开始制作一款独立游戏作为生日礼物显得相当不切实际,我也确实提醒过他降低期望。不过,我还是觉得这是一个有趣的练习,可以测试我手头的智能体工具。

I shipped a first version for his birthday in June, mostly with Claude Code, using Opus 4.8 and Fable 5, and a side-scrolling template courtesy of AIOriented.dev. It worked, but it wasn't worth playing for more than a couple of minutes.

我在六月为他生日交付了第一个版本,主要使用 Claude Code,结合 Opus 4.8 和 Fable 5,并采用了 AIOriented.dev 提供的横版卷轴模板。游戏能运行,但除了玩几分钟外,没什么可玩的。

The June version.

六月的版本。

Aiden was appreciative, but it clearly wasn't the game he'd imagined.

Aiden 表示感激,但这显然不是他想象中的游戏。

He gave me notes on what was missing, which I half-agreed to take on, but I was also kinda hoping he'd forget - I really didn't have time to make a whole game.

他给了我关于缺失内容的反馈,我半推半就地答应改进,但其实我也暗自希望他能忘记——我真的没时间做整个游戏。

Unfortunately, he did not forget. Every time I saw him, he asked about the game.

不幸的是,他并没有忘记。每次见到我,他都会问起那个游戏。

Enter: Fable 5.2

登场:Fable 5.2

I was lucky enough to get an early look at Claude Fable 5.2, and was told to try it on "my most ambitious use case". Finishing this game immediately sprang to mind.

我有幸提前体验了 Claude Fable 5.2,并被建议在“我最雄心勃勃的用例”上试试。完成这款游戏立刻浮现在我脑海中。

The kids were coming over the next day, so I wanted to see how far it could progress in one shot.

孩子们第二天就要过来,所以我想知道它能在一次操作中推进到什么程度。

Before bed, I let it rip with this prompt:

睡前,我用这个提示让它全力运行:

I want you to help me finish this game. Make it as fun as possible. It should feel like a modern-day Ninja Turtles arcade game. An action-packed beat 'em up.

我想让你帮我完成这个游戏。让它尽可能好玩。它应该感觉像是一款现代版的忍者神龟街机游戏。一款充满动作的清版格斗游戏。

Make the graphics amazing. You can use OpenAI's ChatGPT Images 2.5 for images. And ElevenLabs for sound effects. OpenAI key is /path/to/openai-key. ElevenLabs key is /path/to/elevenlabs-key

让画面惊艳。你可以使用 OpenAI 的 ChatGPT Images 2.5 来生成图像,并使用 ElevenLabs 来处理音效。OpenAI 密钥路径为 /path/to/openai-key,ElevenLabs 密钥路径为 /path/to/elevenlabs-key。

You can redo any characters that have already been created. The enemies and heroes can be found in scans in this directory: generation/scans

你可以重新创建任何已经生成的角色。敌人和英雄可以在该目录下的扫描文件中找到:generation/scans

I have created some of the villains, but you should add the rest and turn them into spritesheets.

我已经创建了一些反派角色,但你应该补充其余部分并将它们转换为精灵图(spritesheets)。

Use any assets you find online. Create new sprites for the henchmen. Create backgrounds and power-ups in the levels. I'd like to plug in a controller so up to 4 people can play.

使用你在网上找到的任何素材。为喽啰创建新的精灵图。为关卡创建背景和道具增益效果。我想接入手柄,以便最多支持 4 人同时游玩。

Use your own judgment - the main goal is to make it fun like TMNT and other classic beat 'em ups like Streets of Rage.

发挥你的判断力——主要目标是让它像《忍者神龟》(TMNT)和其他经典清版动作游戏如《怒之铁拳》(Streets of Rage)那样有趣。

Make it one of the best games you can possibly make. You are a truly world-class game developer. Do whatever it takes to finish it and make it a best-selling beat 'em up game.

尽你所能制作出最好的游戏。你是一位真正世界级的游戏开发者。不惜一切代价完成它,使其成为一款畅销的清版动作游戏。

Commit as you go. Don't worry about destroying what exists. Start fresh where it makes sense.

随做随提交(Commit)。不要担心破坏现有的内容。在合适的地方从头开始。

Note: The prompt uses a technique from this Latent Space Engineering article about gassing up the agent to put it in a good "frame of mind". Not sure how relevant it is in the Fable 5.2 age, but hey - it didn't hurt.

注意:提示词使用了这篇关于“Latent Space Engineering”文章中的技巧,即通过“加满油”将代理置于良好的“心态”中。不确定这在 Fable 5.2 时代是否仍然相关,但嘿——这并没有坏处。

When I woke up, the game was waiting for me. And I couldn't believe my eyes!

当我醒来时,游戏已经在那里等着我了。我简直不敢相信自己的眼睛!

Fable had generated a game that was fun. Like, a lot of fun. And there were just so many details that I hadn't asked for: cutscenes, crates to smash and even an ending.

Fable 生成了一个有趣的游戏。真的非常有趣。而且有很多我未曾要求的细节:过场动画、可以砸碎的箱子,甚至还有一个结局。

It threw away most of my code and rewrote the game. It generated roughly 175 images and 140 audio clips.

它丢弃了我大部分代码并重写了整个游戏。它生成了大约 175 张图片和 140 个音频片段。

Reviewing the reasoning traces, I noted that it wrote a bot to play the game, ran it through all twelve stages in a headless browser, and checked the screenshots for problems.

回顾推理轨迹,我注意到它编写了一个自动玩游戏的机器人,在无头浏览器中运行了所有十二个阶段,并检查截图以发现问题。

Play testing

试玩测试

Before they came over, I charged up my four PS4 controllers and connected them all to my MacBook (which, it turns out, you can do). They worked perfectly.

在他们过来之前,我给四个 PS4 手柄充满电并将它们全部连接到我的 MacBook 上(事实证明这是可行的)。它们工作完美。

When they arrived, Aiden was absolutely delighted. "It's exactly as I imagined," he squealed.

当他们到达时,Aiden 欣喜若狂。“完全和我想象的一样,”他尖叫道。

The afternoon shift

下午时段

Hulk Owen takes on Shellshock

Hulk Owen 对战 Shellshock

Everyone in

全员加入

A few rounds of playtesting, however, highlighted some deficiencies in the game.

然而,几轮试玩测试突显了游戏中的一些不足。

First, my older nephew, Owen, felt his character lacked a Hulk Smash move. Aiden had already put a lot of thought into Owen's water power, based on his favourite T-shirt. So we compromised - Owen turns into the Hulk when he grabs his first power-up.

首先,我的大侄子 Owen 觉得他的角色缺少一个“绿巨人粉碎”(Hulk Smash)技能。Aiden 已经根据 Owen 最喜欢的 T 恤花了很多心思设计他的水属性能力。所以我们达成了妥协——Owen 在拿到第一个道具增益后变成绿巨人。

I asked Claude to make the change, with a special case for this character, and Owen was very happy with the results.

我要求 Claude 做出更改,并为这个角色设置特殊逻辑,Owen 对结果非常满意。

Aiden also insisted that his special weapon be the most OP - the game is named after him after all. Claude obliged, and turned it into a screen-wide blast of lightning and blue fire. "Oh, that's perfect!" Aiden exclaimed.

Aiden 还坚持他的专属武器必须是最 OP(超模)的——毕竟游戏是以他的名字命名的。Claude 照办了,将其变成了一场覆盖全屏的闪电与蓝色火焰爆炸。“哦,太完美了!”Aiden 惊叹道。

Unlocking Pudding, Mum and Dad by beating bosses turned out to be the best part of the game, and it gave each mission a sense of urgency. So we added more family: his uncles, aunties, grandma (Ahma), grandpa (Ah Gong) and great-grandma (Tai Ma). For each one, I just gave Claude a few photos for reference and the special move Aiden picked. When he couldn't decide, he had us call them up and ask what they wanted.

通过击败 Boss 来解锁布丁、爸爸妈妈,结果成了游戏中最精彩的部分,这让每个任务都充满了紧迫感。于是我们增加了更多家庭成员:他的叔叔、阿姨、奶奶(Ahma)、爷爷(Ah Gong)和曾祖母(Tai Ma)。对于每一位角色,我只给 Claude 提供几张参考照片以及 Aiden 选定的特殊招式。当他拿不定主意时,我们就打电话给他们,问问他们想要什么。

Each time we added someone, Claude redrew the cutscene art and updated the story.

每次添加新角色,Claude 都会重绘过场动画的艺术图并更新故事内容。

Grandpa's Card Storm | Grandma's Super Bloom | Uncle Kev's Cheat Code

爷爷的卡牌风暴 | 奶奶的超级绽放 | Kev 叔叔的作弊码

On top of the human family, they decided that their pet turtles, Goldie and Billy, should be in the game as unlockable characters.

在人类家庭成员之外,他们还决定让他们的宠物龟 Goldie 和 Billy 也作为可解锁角色加入游戏。

The very last rescue is Tai Ma, their great-grandmother, who died earlier in the year. So Aiden suggested she should be an angel, and, again, Claude was happy to oblige.

最后的救援目标是 Tai Ma,他们的曾祖母,她已于今年早些时候去世。因此 Aiden 建议让她成为天使,而 Claude 再次欣然同意。

Five heroes became eighteen.

英雄从五人变成了十八人。

The drawings and the game

画作与游戏

Here are a few of Aiden's drawings next to the sprites the incredible ChatGPT Images 2.5 made from them.

以下是 Aiden 的一些画作,旁边是令人惊叹的 ChatGPT Images 2.5 根据这些画作生成的精灵图(sprites)。

Uncle Lex: "electric guitar".

Lex 叔叔:“电吉他”。

Doggo (my dog): she bites, and the spiky tail is her kick.

狗狗(我的狗):她会咬人,带刺的尾巴就是她的踢击动作。

The Battle Wagon: the villains steal it, which kicks off the whole game. Claude also decided that it should be an occasional power-up, where you grab the horn and it drives across the screen. That works.

战斗战车:反派偷走了它,从而引发了整个游戏的故事。Claude 还决定让它成为一种偶尔出现的强化道具,玩家抓住喇叭后,战车会横穿屏幕行驶。这效果不错。

8th: Shellshock. Aiden numbered his villains 1st to 12th, and the game uses that as the boss order.

第 8 名:Shellshock。Aiden 给他的反派按 1st 到 12th 编号,游戏便以此作为 Boss 的出现顺序。

All 12 villains, drawing by sprite

全部 12 名反派,由精灵图绘制而成

1st: Dog Slayer

第 1 名:Dog Slayer

2nd: Rammox

第 2 名:Rammox

3rd: Blazimp

第 3 名:Blazimp

4th: Bullzerk

第 4 名:Bullzerk

5th: Beedrill

第 5 名:Beedrill

6th: Quadpunch

第 6 名:Quadpunch

7th: Sensei Scowl

第 7 名:Sensei Scowl

8th: Shellshock

第 8 名:Shellshock

9th: Corvax

第 9 名:Corvax

10th: Shade

第 10 名:Shade

11th: Goldfist

第11名:Goldfist

12th: CrocoKing

第12名:CrocoKing

The final token tally

最终的代币统计

The final token tally looked something like this:

最终的代币统计大致如下所示:

What was used
Clauderoughly 600 requests over two days: about 320M tokens read from cache, 19M written to cache, 1M output
OpenAI imagesabout 500 images: sprite sheets, character designs, portraits, backgrounds and key art
ElevenLabs11 music tracks, about 100 sound effects and 90 announcer lines
使用情况
Claude两天内大约600次请求:从缓存读取约3.2亿个代币,写入缓存1900万个,输出100万个
OpenAI images大约500张图片:精灵表、角色设计、肖像、背景和关键艺术图
ElevenLabs11首音乐曲目,约100个音效和90句旁白台词

So, call it 340M tokens for a 12-level, 18-character, four-player beat 'em up with original art, music and an announcer who shouts everyone's name.

所以,可以说,用3.4亿个代币制作了一款拥有原创美术、音乐以及会喊出每个人名字的旁白的12关、18个角色、四人合作的横版动作游戏。

A pretty wild milestone

一个相当惊人的里程碑

I must admit I never tested this with Opus 5.5, so I'm not sure whether this was possible before Fable 5.2 rolled around. Still, whether it's thanks to this generation or the last, this is a pretty wild milestone. Claude Code with Fable 5.2 is capable of making entire 12-level fun games - in one shot.

我必须承认,我从未在 Opus 5.5 上测试过这一点,所以我不确定这在 Fable 5.2 推出之前是否可行。尽管如此,无论是得益于这一代还是上一代模型,这都堪称一个相当惊人的里程碑。搭载 Fable 5.2 的 Claude Code 能够一次性打造出完整的12关趣味游戏。

Try it yourself.

亲自试一试吧。

Comments

评论

Reply to this post on Bluesky or Mastodon or Hacker News to join the conversation.

在 Bluesky、Mastodon 或 Hacker News 上回复此帖以加入讨论。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →