Fw: [閒聊] OpenGame:一句提示詞生成遊戲

看板GameDesign (遊戲設計)作者 (Zaious.)時間2小時前 (2026/04/23 09:57), 2小時前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ [本文轉錄自 AI_Art 看板 #1fwNlxt0 ] 作者: ZMTL (Zaious.) 看板: AI_Art 標題: [閒聊] OpenGame:一句提示詞生成遊戲 時間: Thu Apr 23 09:55:04 2026 你有沒有想過,腦袋裡有一個遊戲的點子,但因為不會寫程式所以只能放棄? OpenGame 就是想解決這個問題的開源框架。只要用一段文字描述你想要的遊戲—— 類型、玩法、畫風、角色——它就會自動幫你把完整的可遊玩網頁遊戲寫出來, 不需要你動一行程式碼。 這個專案來自香港中文大學 MMLab 研究室,在 2026 年 4 月剛剛正式開源。 它不是一般的 AI 補全工具,而是一套完整的「AI 代理人框架」。 背後的核心技術叫做 Game Skill,分成兩個部分: Template Skill 負責根據遊戲需求選擇合適的引擎(比如 Phaser、three.js、Canvas) 並建好專案骨架; Debug Skill 則會在沙盒環境中自動執行遊戲、找出錯誤、一直修到可以玩為止。 這兩個技能讓 AI 從「寫出看起來合理的程式碼」進化到「真的能跑、能玩的成品」。 驅動這套框架的模型叫 GameCoder-27B, 是一個專門為遊戲開發訓練過的 270 億參數語言模型, 經過遊戲引擎知識的預訓練、有監督微調、 以及以「能不能跑起來」為獎勵訊號的強化學習三個階段打磨出來的。 換句話說,這不是拿通用模型硬用在遊戲上, 而是真的針對多檔案的遊戲邏輯做了專項訓練。 要怎麼用呢?裝好環境之後(Node.js + npm install), 直接在命令列輸入一段遊戲描述就可以了。例如: opengame "Build a playable web game about dodging meteors" 它就會自動跑完整個流程:選引擎、搭骨架、寫程式、執行測試、修錯誤, 最後給你一個可以在瀏覽器打開的遊戲。 研究團隊用 150 個不同難度的遊戲 prompt 做了評測, OpenGame 在「能不能跑起來」、「畫面能不能看」、「玩起來符不符合描述」三個維度 都達到了目前開源方案的最佳成績。 GitHub:https://github.com/leigest519/OpenGame 專案頁面:https://www.opengame-project-page.com/ 論文:https://arxiv.org/abs/2604.18394 Playable Demos 以下 6 個 Demo 都是由一句 prompt 直接生成的完整遊戲,可在專案頁面或 GitHub README 的 Live Demo 連結直接玩: 漫威復仇者:無限打擊 prompt(原文):"Build an epic side-scrolling action platformer starring the Avengers. I want to select between Iron Man (lasers & flight), Thor (hammer melee & lightning), or Hulk (smash attacks) to fight through 3 distinct levels: a ruined City, a SHIELD Helicarrier, and finally Titan. Each hero needs a basic attack, a special skill, and a screen-clearing Ultimate move. The final boss must be Thanos using Infinity Stone powers. The art style should be hardcore 90s Capcom arcade pixel art, not cute/chibi." prompt(中文翻譯):建造一款以復仇者聯盟為主題的橫向捲軸動作遊戲。可選擇鋼鐵人 (雷射+飛行)、雷神(鎚擊+閃電)或浩克(砸擊)闖過三個關卡:廢墟城市、神盾局航 空母艦、最終決戰泰坦星。每位英雄需有基本攻擊、特殊技能與清場終極技。最終BOSS為 使用無限寶石能力的薩諾斯。美術風格為90年代CAPCOM街機像素風,非可愛風。 demo連結:https://www.opengame-project-page.com/demos/marvel.mp4 哈利波特:算術占卜學院 prompt(原文):"Create a turn-based card battle game set in a pixel art Hogwarts. I want to play as a wizard student dueling a rival in the Dueling Club. The twist is that magic requires knowledge: to cast spell cards like 'Expelliarmus' or 'Stupefy', I must answer trivia questions (Math/Science) correctly. Include a 'Magic Resonance' combo system where getting consecutive right answers boosts my spell damage. The style should be atmospheric Gothic fantasy pixel art with parchment-style UI and magical particle effects." prompt(中文翻譯):製作一款以霍格華茲為背景的回合制卡牌對戰遊戲。玩家扮演魔法 學生在決鬥俱樂部挑戰對手,施放「除你武器」或「昏昏倒地」等法術卡片前需正確回答 數學/科學知識問答。加入「魔力共振」連擊系統,連續答對可提升法術傷害。畫風為哥 德奇幻像素風,UI採羊皮紙風格搭配魔法粒子特效。 demo連結:https://www.opengame-project-page.com/demos/harryPotter.mp4 知識拳皇:大鬧天宮 prompt(原文):"Make a local 2-player quiz fighting game that looks and feels like a classic 90s SNK retro arcade fighter (like The King of Fighters). Instead of punching, players fight by racing to hit a 'Buzzer Key' to answer physics questions. If you answer fast and correctly, you deal damage; if you're wrong, you take self-damage. The setting is a grand fighting tournament stage located in a majestic 'Heavenly Court' (Chinese celestial realm), complete with ancient jade gates, floating auspicious clouds, and golden traditional motifs. Include dramatic health bars, screen shake on hits, and a 'K.O.' sequence. Visuals should be highly detailed 16-bit pixel art, typical of 90s arcade cabinets." prompt(中文翻譯):製作一款雙人對戰搶答格鬥遊戲,風格仿照90年代SNK街機格鬥( 如拳皇系列)。雙方不靠出拳,而是搶按「蜂鳴器鍵」來回答物理問題,答對造成傷害, 答錯反傷自己。場地設定在莊嚴的「天庭」,有古老玉門、祥雲浮動與金色傳統紋飾。包 含誇張的血條、受擊震動與「K.O.」動畫。視覺為高細節16-bit像素風,符合90年代街機 美學。 demo連結:https://www.opengame-project-page.com/demos/kombat.mp4 哈基米保衛戰:金槍魚危機 prompt(原文):"Make a hilarious tower defense game called 'Hajimi Defense' where cute cats defend a 'Golden Tuna Can' from an invasion of household pests (Cucumbers and Vacuums). The towers should be funny cat memes: a spitting Tabby, a sniper Siamese, and a fat orange cat that throws buns for AOE damage. Include a mechanic where players can click to break obstacles (like boxes) to free up building space. The art style should be hand-drawn, pastel, and super cute (Kawaii)." prompt(中文翻譯):製作一款搞笑塔防遊戲「哈基米防衛戰」,可愛的貓咪們要守護「 黃金鮪魚罐頭」對抗小黃瓜和吸塵器的入侵。防禦塔為貓咪梗圖風格:噴口水的虎斑、狙 擊型暹羅貓、丟麵包造成範圍傷害的橘胖貓。加入點擊破壞障礙物(如箱子)以釋放建設 空間的機制。美術風格為手繪粉彩超卡哇伊風。 demo連結:https://www.opengame-project-page.com/demos/hajimi.mp4 星球大戰:曼達洛人協議 prompt(原文):"Create a high-intensity top-down action RPG shooter set in the Star Wars universe. Play as The Mandalorian fighting through an Imperial Base to rescue Grogu. The gameplay should be a Twin-Stick Shooter style where I can use a Blaster (ranged), a Beskar Spear (melee), and a Jetpack Dash to dodge." prompt(中文翻譯):製作一款高強度俯視角動作RPG射擊遊戲,背景為星際大戰宇宙。 玩家扮演曼達洛人突破帝國基地拯救古魯。玩法為雙搖桿射擊風格,武器包括爆能槍(遠 程)、貝斯卡長槍(近戰)及噴射背包衝刺迴避。 demo連結:https://www.opengame-project-page.com/demos/starWars.mp4 魷魚遊戲:一二三木頭人 prompt(原文):"Recreate the intense 'Red Light, Green Light' scene from Squid Game as a survival reflex game. The player controls a character in a green tracksuit running across a sandy field towards a finish line. There is a Giant Robot Doll on the right; when she sings, we run; when she turns her head, we must stop instantly or get shot. Crucial visual detail: Dead bodies and blood pools should NOT disappear, they must pile up on the field to create a chaotic atmosphere. Use a gritty, realistic 16-bit pixel art style." prompt(中文翻譯):重現魷魚遊戲中緊張的「一二三木頭人」場景,做成生存反應遊戲 。玩家控制穿綠色運動服的角色在沙地上衝向終點線,右側有巨型機器娃娃;她唱歌時跑 ,她轉頭時必須立刻靜止,否則中槍淘汰。重要視覺細節:死亡屍體與血跡不消失,要在 場地上越堆越多製造混亂氣氛。畫風為寫實粗礪的16-bit像素風。 demo連結:https://www.opengame-project-page.com/demos/squidGame.mp4 - 其實蠻好奇獨立遊戲開發者目前的感受是喜歡AI還是拒絕AI XD -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.161.109.157 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/AI_Art/M.1776909307.A.DC0.html ※ 編輯: ZMTL (1.161.109.157 臺灣), 04/23/2026 09:56:44 ※ 發信站: 批踢踢實業坊(ptt.cc) ※ 轉錄者: ZMTL (1.161.109.157 臺灣), 04/23/2026 09:57:19
文章代碼(AID): #1fwNo0um (GameDesign)
文章代碼(AID): #1fwNo0um (GameDesign)