Skip to content

fix: demo display fix - #360

Merged
prairie2022 merged 4 commits into
developfrom
feat/demo-display-fix
Jul 18, 2026
Merged

prairie2022 merged 4 commits into
developfrom
feat/demo-display-fix

Conversation

@PsychoPinkQ

Copy link
Copy Markdown
Contributor

Related Issue

沒開

  • Closes:

Summary

  • Demo 和 Client 端時間不同步(但是 Client 端的問題)
  • 能量球 +N 不會顯示
  • 角色和西瓜的影子不會顯示

Changes

  • 修正 demo 中玩家跳躍時沒有影子的問題

    • 根據 is_jumping / sprite_y 在 demo renderer 產生玩家影子
    • 套用與實際 player 相同的 shadow scale / alpha 邏輯
  • 修正 demo 中能量球 +N 沒有顯示或位置錯誤的問題

    • 補上 energy ball collect event 同步資料
    • demo 偵測 collect_seq 更新後產生 energy_text
    • 修正 +N 座標換算,讓文字出現在能量球原本位置附近
    • 將 demo 的 +N label 移到 StageLayer,避免被 SubViewport 的像素效果影響
  • 修正 demo 中 Trap9 mortar 顯示錯誤

    • demo 使用獨立的 shell / shadow 顯示路徑
    • 避免原本 trap 場景內的 shell / shadow 在 demo 中位置錯亂
  • 修正 demo energy HUD 上限文字在遊戲開始前位置錯誤

    • /max 位置現在在 _ready()、energy 更新、max energy 更新時都會重新計算

How to Test

./test_env.sh

Notes

@prairie2022
prairie2022 force-pushed the feat/demo-display-fix branch from 0ec0a46 to bf00f0b Compare July 17, 2026 23:58
@prairie2022
prairie2022 merged commit bf00f0b into develop Jul 18, 2026
2 checks passed
@prairie2022
prairie2022 deleted the feat/demo-display-fix branch July 18, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants