YiduoChan 实验记录 · 2026-12-04
MiniMax-M4 生成「千灯渡」:耗时、tokens 与修复记录
目标是用一个完整提示词生成可直接打开的单文件 3D 跑酷游戏,玩家在灯会上跳过漂浮河灯,30–60 秒内理解并完成。第四次尝试产出了完整 HTML;原始结果存在运行错误,修复三处对象引用后才成为下方的可玩版本。
操作:空格开始,A/D 或左右箭头移动,空格或上箭头跳跃。游戏使用 three.js CDN,需要网络;桌面键盘游玩。
完成输出的那次请求
| 模型 / effort | MiniMax-M4 / max |
|---|---|
| 输出上限 | 262,144 tokens |
| 开始 / 结束(UTC) | 2026-12-04 04:07:03 / 04:29:33 |
| 请求耗时 | 1,350.713 秒(22 分 30.7 秒) |
| 首次 HTML 文本 | 请求开始后 1,186.096 秒 |
| 输入合计 | 539 = 347 普通输入 + 192 缓存读取 |
| 输出合计 | 173,461 = 139,370 推理 + 34,091 最终文本 |
| 总 tokens | 174,000 = 539 输入 + 173,461 输出 |
| 结束原因 | end_turn,收到完整 message_stop |
统计边界:这次实验从服务器直接调用 MiniMax 的 Anthropic 兼容上游,未经过 yiduochan 网关计费路径。上表仅包含完成输出的第四次请求,不含之前失败尝试、人工修复或试玩耗时,不代表普通请求的典型速度、成本或服务 SLA。
前几次尝试发生了什么?
- medium,65,536 输出上限:耗时 641.731 秒,总计 66,075 tokens;输出全部是推理,没有最终 HTML。
- medium,Anthropic 流式:约 51 秒时按用户要求中断以切换档位,未拿到最终输出用量。未知用量不能记作零。
- max,131,072 输出上限:耗时 1,121.609 秒,总计 131,611 tokens;再次耗尽输出额度,没有最终 HTML。
- max,262,144 输出上限:第四次才完成输出,即上表结果。
因此,不能把这个案例描述为“一次生成即可玩”,也不能把 174,000 tokens 当作全部尝试的总消耗。
修了什么,验证了什么?
原始程序将玩家包装对象当作 three.js 场景对象访问,导致 animatePlayer 运行错误。修复仅把三处旋转和位置访问从包装对象指向其 g 属性:两处 rotation,一处 position。
修复版通过开始、左右移动、跳跃、落水和通关检查;键盘自动化试玩约 33.05 秒完成,44 次跳跃,未修改游戏物理或胜负条件。已知小问题:落水结算页的已渡距离显示为 0,顶部剩余距离正常。
下载精简原始统计(JSON)。该文件包含原始输出与可玩版本的 SHA-256、计数定义和修复说明,不包含 API Key、用户信息或模型思维链。
完整提示词
下载纯文本提示词。模型请求使用以下英文原文:
Create a single, self-contained index.html file for a playable browser game. No other files, no build step, no placeholders, and no external assets except a CDN for three.js if needed. Opening the file in a browser must work immediately. Output ONLY the complete HTML file: no preamble, no tutorial, no design notes.
Game title: 千灯渡 (Lantern Crossing).
It is a third-person or over-the-shoulder 3D runner that can be understood and finished in 30–60 seconds. On a night river during a lantern festival, the player hops forward across giant floating river lanterns. The lanterns drift, sway, and sometimes sink or pull apart. The player must keep moving forward without falling into the dark water. Show a clear countdown or distance meter. Include a short end screen for 渡过 (crossed) or 落水 (fell).
Controls must be obvious in one second: A/D or arrow keys to shift left and right, Space or Up to jump. Show a start card with the title 千灯渡 and “按空格开始”.
Scope: one continuous river-and-lantern sequence, no extra rooms, no extra modes, no menus beyond the start card and end screen. Do not make a static scene, an island, a bird, a shooter, or a voxel sandbox.
Put the effort into camera and atmosphere: a low camera skimming the water, sense of speed and height, warm lantern glow, reflections on the river, light mist, drifting petals or sparks, and a festival shoreline in the distance. It should feel like a short game trailer the player can actually control, and it must be immediately playable when the file is opened.
可以从案例得出什么?
M4 可以为这一特定提示词产出较长的单文件游戏实现,但提高 effort 和输出上限并不保证无错误。需要区分推理 tokens、最终文本、人工修复与网关账单,并通过真实运行验证结果。此记录是一次具体实验,不是与其他模型的公平对比测试。