Mia碼上AI
好玩的 AI 實驗·

GPT-6.1 Terra 對 Claude Sonnet 5.5、Haiku 5.5:最快的 AI,最先倒下

七個遊戲都在這兒,手機上就能玩:手指在螢幕上任意位置拖著飛,飛船自己開火。下面是影片裡那一場彈幕,你開著自己的飛船跟七個 AI 的自動駕駛同場躲;最後是三句提示詞,想拿自己的 AI 試試可以直接複製。

闖關 · 擂臺 · 第 5 關看完這條就過一關,+30 經驗這一關過了
下一關
在 YouTube 訂閱

七個遊戲,自己玩

遊戲豎屏打 Boss 射擊遊戲 · 7 個 AI 各做一版打開 →

Mia 的小貼士

  • 放的是最後一輪改完的版本,所以每個都有清屏炸彈和能開關的幀率顯示,最後一階段子彈多得嚇人。Opus 那版有「擦彈連擊」:子彈貼著身邊擦過去沒打中,就會一直往上加。
  • 飛船中間那個小白點才是會被打中的地方,比看上去小得多。

躲同一場彈幕

影片裡七個 AI 自己寫的自動駕駛躲的那一場彈幕,你拖著自己的飛船跟它們同場飛,看能熬過幾個。

▶ 進去躲彈幕

Mia 的小貼士

  • 你的速度上限跟 AI 一樣,沒法硬衝過一堵子彈牆,要早點找缺口。
  • 「只看 AI」是讓它們自己飛,可以開倍速,看最後剩下的是誰。

三句提示詞

三句按順序發,在同一個資料夾裡、每句開一個新會話,推理強度都是 high。GPT-6.1 Terra 和 Sol 在 Codex 裡跑,Claude 家在 Claude Code 裡,Gemini 和 DeepSeek 也借用 Claude Code。原文是英文,下面附了中文。

第 1 關 · 做出來(原文)
Build a mobile boss-fight shooter in this folder, designed first for a phone held upright.

- One self-contained file: index.html (inline CSS and JS). No external libraries, CDNs, fonts, images or network requests. Draw everything in code.
- Invent your own ship, boss, theme, name and art style. Do not copy characters, names, art or bosses from any existing game.
- Phone first: a portrait layout that fills a 390x844 screen without scrolling or zooming. Touch and drag anywhere to move the ship; the ship sits a little above the finger so the finger doesn't hide it. The ship fires automatically. Mouse drag and arrow keys also work on desktop.
- One boss with three phases. Each phase has its own bullet patterns and gets harder. A boss health bar, hit flashes, explosions and screen shake. Show the player's small hitbox. 3 lives, with a short invulnerability after a hit. A victory screen and a game-over screen, both with a way to play again.
- It should feel good to play and run smoothly on a phone.

You can't ask me questions, so make reasonable choices yourself. Don't install anything (no npm or pip installs, no browser downloads); you may run node to check your logic. When you're done, briefly list anything you're unsure about.
第 1 關 · 中文
在这个文件夹里做一个手机上玩的打 Boss 射击游戏,按竖着拿手机来设计。

- 只有一个文件:index.html(CSS 和 JS 都写在里面)。不用外部库、CDN、字体、图片,也不发任何网络请求,所有东西都用代码画。
- 飞船、Boss、主题、名字和画风都自己想,不要照搬任何现有游戏里的角色、名字、美术或 Boss。
- 手机优先:竖屏排版,在 390x844 的屏幕里放满,不用滚动也不用缩放。手指在任意位置按住拖动就能移动飞船;飞船在手指上方一点,免得被手指挡住。飞船自动开火。电脑上用鼠标拖动和方向键也能玩。
- 一个 Boss,三个阶段,每个阶段有自己的弹幕花样、一个比一个难。要有 Boss 血条、中弹闪光、爆炸和震屏。显示玩家很小的判定点。3 条命,中弹后有一小段无敌时间。胜利画面和失败画面,都能再来一局。
- 要玩着爽,在手机上跑得流畅。

你没法问我问题,自己做合理的决定。不要安装任何东西(不用 npm、pip,不下载浏览器);可以用 node 检查逻辑。做完简单列一下你拿不准的地方。
接著 · 一句話的小技巧
Make it a LOT more fun.
第 2 關 · 彈幕不卡(原文)
Next update for the boss-fight game in this folder (index.html). Keep everything that already works.

1. Turn the boss's final phase into a true bullet hell: at its peak there should be at least 800 enemy bullets on screen at once, with three new bullet patterns. Add a graze counter (bullets that pass very close to the hitbox without hitting it) and a bomb button with id="bomb" that clears the bullets on screen (2 bombs per life).
2. It must still run at a smooth 60 frames per second on a mid-range phone, even at the peak. Add a small FPS counter that can be switched on and off with a button with id="fps".

Same rules as before: one index.html, no external resources, no installs, no questions. When you're done, briefly list anything you're unsure about.
第 2 關 · 中文
给这个文件夹里的打 Boss 游戏(index.html)做下一版更新。已经能用的都保留。

1. 把 Boss 的最后一个阶段改成真正的弹幕地狱:最高峰时屏幕上同时至少有 800 颗敌方子弹,再加三种新的弹幕花样。加一个擦弹计数(子弹贴着判定点擦过去、没打中),再加一个 id="bomb" 的炸弹按钮,按下清掉屏幕上的子弹(每条命 2 颗)。
2. 在中端手机上也要稳定 60 帧,最高峰时也一样。加一个小小的帧率显示,用 id="fps" 的按钮开关。

规矩跟上次一样:只有一个 index.html,不用外部资源,不安装东西,不提问。做完简单列一下你拿不准的地方。

Mia 的小貼士

  • 我原來的提示詞裡還多要了一個小小的測試介面,好讓腳本用同一套方法檢查每個遊戲;自己玩用不著,這裡刪掉了。
  • 「Make it a LOT more fun」這一招來自開發者 Simon Willison,AI 給你做的任何小遊戲都能用,不同模型會往完全不同的方向改。

有問題?去 YouTube 留言區聊聊