
三臺 3D 彈珠檯
電腦上用左右方向鍵(或 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 房子。
更多影片
全部 136 部
已看Anthropic 和 OpenAI 要擁有全世界的勞動力?Dylan Patel 的算力賬:四道題,換你也這麼選AI 訪談錄 · 11月17日
已看我讓 Claude、GPT、Gemini 等 9 個 AI 玩太空狼人殺,說真話的被投出去了AI 巔峰對決 · 11月17日
已看ChatGPT 為什麼念不出「重庆时时彩彩」AI 原理 · 11月23日
已看AI 把動畫補到 60 幀,為什麼反而更難看?AI 那些事 · 11月15日
已看不給任何任務,AI 會幹什麼?MIT 把 13 個 Claude 丟上荒島 30 小時AI 那些事 · 11月17日
已看OpenAI 破了數學家 7 年的乘法紀錄,要靠 Claude 才讀懂論文AI 那些事 · 11月24日
已看Claude Opus 5.5 對 GPT-6 Astra 下中國象棋,誰會贏?AI 巔峰對決 · 10月23日
已看Claude Code 的 Code Mode 該不該開?實測三種活AI 實測 · 11月30日



