GameDesign 板


LINE

※ [本文轉錄自 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://webptt.com/m.aspx?n=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
1F:推 iLeyaSin365: “專門訓練的遊戲開發的大語言模型 ” 04/24 08:56
2F:→ iLeyaSin365: 還是要能夠用AI 04/24 08:56
3F:推 NX9999: 看起來可以幫助獨立開發者更快完成遊戲,但是最後還是要 04/26 03:55
4F:→ NX9999: 靠有沒有想法跟創意,不然可能會不知道下一步增加什麼內 04/26 03:55
5F:→ NX9999: 容,之類的@,@ 04/26 03:55
6F:→ NX9999: 喔喔我應該誤會這個工具的用途@@ 04/26 04:08







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Tech_Job站內搜尋

TOP