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!
==== 你不用全查,直接用「補丁」一口氣把它們堵掉就好😈 ==== # 圖片載入失敗 / 路徑錯 GEMINI 如果用外部 asset(或 base64 沒貼好),image.onload 沒觸發 → 角色不畫。 # 角色其實在,但被畫在畫面外(鏡頭/座標偏移) spawn 位置、camera offset、縮放比一改,很容易一出生就在視窗外。 # 角色有畫,但被地板/遮罩蓋住(draw order / depth sort) 尤其你要做 isometric-lite 時,一個排序沒處理就直接「被地板壓扁消失」。 # 角色 alpha=0 / chroma key 把整個角色當透明 如果你叫它做綠幕/黑幕去背,有時候 key color 設錯範圍,整張都被判透明。 # 角色太小/顏色太接近背景 你現在這張地板又暗又顆粒,角色如果是黑灰系小小一顆,就像隱形😂 # 更新迴圈 early return(某個判斷失敗就跳出) 例如 if (!assetsReady) return; 然後 assets 永遠不 ready。 ✅ 結論:這不是你一定要提供圖片,而是你要逼它「就算沒圖片也要畫得出主角」。 所以我們下一輪要加「Fallback 角色渲染」和「Debug Overlay」當保險絲。
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)