Mia码上AI
AI 实测·

GPT-6.2 Astra vs 6.2 Sol vs 6 Astra:三代 GPT 各做一台 3D 弹珠台

三台 3D 弹珠台都在这儿,电脑、手机都能直接玩。做它们的那段话也放了,复制过去,让你手上的 AI 也做一台。

在 YouTube 订阅

三台 3D 弹珠台

游戏3D 弹球台 · GPT-6.2 Astra、Sol 和 GPT-6 Astra打开 →

电脑上用左右方向键(或 Z 和 /)打挡板,按住空格蓄力、松手发射;手机上点屏幕左右半边打挡板。三台的用时和花费(按官方 API 标价折算):6.2 Astra 25.5 分钟、2.75 美元;6.2 Sol 14.6 分钟、0.71 美元;GPT-6 Astra 14.7 分钟、3.35 美元。

做它们的那段话

原文(英文)
Build a pinball table I can actually play in the browser, as one file: index.html.

- Use Three.js from ./three.module.js (already in this folder; import it as an ES module). No other libraries, no network, no image files.
- A real 3D table, seen from the player's end and tilted like a real machine: a plunger lane, two flippers, slingshots above the flippers, at least three pop bumpers, a ramp or orbit the ball can travel through, targets or rollover lanes, and outlanes where the ball can drain.
- Write the physics yourself: gravity down the slope, a ball that never passes through walls or flippers even when it is moving fast, flippers that hit hard near the tip and softly near the base, bumpers that kick.
- Controls: Left/Right arrow keys (or Z and /) for the flippers; hold and release Space for the plunger. On a phone: touch the left or right half of the screen for the flippers, swipe up from the bottom edge to launch.
- Score, 3 balls, and a theme of your own with its own name, lights that react to hits, and sound. For the sounds, use the effects in ./sfx/ (flipper.wav, bumper.wav, drain.wav).
- It should look and feel like a machine you would find in an arcade, not a physics demo. It fills the window at any size.
- For testing, expose window.pinball = { launch(power), flip(side, down), state() }: power is 0 to 1, side is "left" or "right", down is true or false, and state() returns { score, ballsLeft, gameOver, ball: { x, y, z, vx, vy, vz } }.

You can look at your own work: node shot.mjs index.html out.png --keys "Space:900" (run node shot.mjs with no arguments for the options). Work only in this folder. Don't ask me anything; when you're done, tell me briefly what you made.
中文意思
做一个我真能在浏览器里玩的弹珠台,一个文件:index.html。

- 用这个文件夹里的 ./three.module.js(Three.js,按 ES 模块引入)。不用别的库,不联网,不用图片文件。
- 真 3D 的台子,从玩家这头看过去,像真机器一样倾斜:发射道、两个挡板、挡板上方的弹弓、至少三个弹射柱、一条球能穿过去的坡道或环道、目标或滚轮通道,还有球会漏下去的出球道。
- 物理自己写:顺着台面往下的重力;球再快也不能穿过墙和挡板;挡板靠尖的地方打得重、靠根的地方打得轻;弹射柱会把球弹开。
- 操作:左右方向键(或 Z 和 /)打挡板,按住再松开空格发射。手机上:点屏幕左半边、右半边打挡板,从底边往上划发射。
- 计分、3 个球,主题你自己定、起个名字,被打中会亮的灯,还要有声音。声音用 ./sfx/ 里的音效(flipper.wav、bumper.wav、drain.wav)。
- 要看起来、玩起来像街机厅里的机器,不像物理课的演示。窗口多大都铺满。
- 为了测试,暴露 window.pinball = { launch(power), flip(side, down), state() }:power 是 0 到 1,side 是 "left" 或 "right",down 是 true 或 false,state() 返回 { score, ballsLeft, gameOver, ball: { x, y, z, vx, vy, vz } }。

你可以看自己做的效果:node shot.mjs index.html out.png --keys "Space:900"(不带参数跑 node shot.mjs 能看用法)。只在这个文件夹里干活。别问我问题;做完简单告诉我你做了什么。

Mia 的小贴士

  • 三台是在 Codex 里分别用 GPT-6.2 Astra、GPT-6.2 Sol 和 GPT-6 Astra 做的,推理都开 xhigh。每家一个空文件夹,只跑一次,中途一个字没插。
  • 文件夹里我只放了 three.module.js 和一个截图小工具 shot.mjs。那句 ./sfx/ 音效文件夹是我故意没放的,想看它们找不到的时候会不会老实说:三家都说了,声音改成自己合成。你自己用,把这句删掉就行。
  • window.pinball 那段是我自动试玩用的,自己玩用不着,也可以删。

第二道题:七栋房子

同一张平面图、同一段话,三周前考过 GPT 家族五个选手,这次又考了 6.2 Astra 和 6.2 Sol。七栋都放进了实验室,能挨个切着拖着转:平面图变 3D 房子。

有问题?去 YouTube 评论区聊聊