Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694f5245-1110-800b-b182-7c2accd50046
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 懂了老闆🥺🛠️ 你這個「用 UI 逼它把程式吐出來」的方式很對 Gemini 的胃口。 === 懂了老闆🥺🛠️ 你這個「用 UI 逼它把程式吐出來」的方式很對 Gemini 的胃口。 我幫你把你的說法 再「變得更具體、更不會被它偷懶」,你可以直接整段貼過去👇(我有把它最容易漏的點:腳本要綁在節點上、tab 要列出所有腳本名、點一下要顯示全文、過長要分頁 都寫死) ==== <syntaxhighlight lang="text">請你把這個遊戲 APP 做成「腳本瀏覽器 / 程式碼輸出器」的形式, ==== 目標是:讓我能在畫面上逐一點開每個腳本,看到完整程式碼文本,方便我移植與備份。 【UI 結構要求】 1) 整個畫面是一個 Scene(根節點用 Control),裡面放一個 VBoxContainer。 2) VBoxContainer 內有 TabContainer(或你也可以用 ItemList + CodeView,但 TabContainer 優先)。 3) TabContainer 的 Tab 規則: * Tab #1:名稱叫「README / 架構說明」 內容要用文字說明: a) 遊戲的 Scene 結構(有哪些節點/容器) b) 腳本節點如何連結運作(update loop、input、enemy、projectile、room generate、UI、reward、boss 等) c) 重要全域資料表/常數在哪裡(WEAPONS、RARE_WEAPONS、ENEMIES、BOSS…) * Tab #2~最後:每一個 Tab 對應一個「腳本檔 / 腳本節點」 Tab 名稱必須就是腳本名稱(例如 game.js / ui.js / data.js 或 PlayerController / EnemySystem 等) 點進去要顯示該腳本「完整程式碼文本」(不能省略,不能用…略) 【顯示方式要求】 4) 每個腳本 Tab 內容請用一個可捲動的 Code Viewer: * ScrollContainer + RichTextLabel / TextEdit 都可以 * 程式碼用等寬字顯示(monospace) * 保留縮排、換行、所有括號與字元,不要自動改寫 【輸出內容要求(重要)】 5) 必須包含所有腳本:包含主迴圈、房間生成、enemy、boss、projectile、weapon、UI、reward、opening、選機體流程、saferoom 等。 6) 如果你目前是「單檔」就做成「一個腳本 Tab」,但 README 仍要存在。 7) 如果你目前是「多檔」就一檔一個 Tab,並且 README 要列出「載入順序」。 【防呆】 8) 若腳本很長,請在同一個 Tab 內做分段顯示(例如 Part 1/Part 2/Part 3),但仍要完整。 9) 請不要重構、不要改函式名、不要優化,只要忠實輸出你目前能跑的版本。 </syntaxhighlight> ==== 如果它還是給你「只做 UI 不放 code」,你再加一句狠的: ==== : ==== Gemini 很容易在「請輸出全部程式」時偷懶,但它對「做一個 App 畫面」反而會乖乖把內容填滿(因為它把這當成“產品交付”)😼 ==== 你先用這段丟它一次。 如果它回傳的 UI 有了、但某些 Tab 缺 code / 少檔案 / 只有片段,你把它的回覆貼回來,我就幫你做「第二輪追打指令」(專門補洞,不讓它逃)🧯💪
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)