Toggle navigation
Search
思元的開發筆記
Programming
Unity
LeetCode
Golang
Game Demos
Archive
Blog
About
思元的開發筆記
關於 web service, unity, blogger 等軟體工程筆記
×
Search dev.twsiyuan.com
AWS Beanstalk: Cannot open shared object file and ldconfig
持續的 Beanstalk 部屬筆記,最近部屬的 Go web application,使用到 cgo 動態連結其他函數庫 (shared library) 的函數,在執行階段發生找不到函數庫的錯誤:
Read More
王思元
6:39 下午
服務部署
,
AWS
,
Linux
AWS Beanstalk: Configuring the proxy server - Keepalive connection with backend app
無意間在檢查應用服務時,所發現的 nginx 設定問題,每次與 nginx 連線要求時,nginx 都會另外開一個連線來處理與後端伺服器 (backend app) 的資料交換。目前專案服務採用 source bundle 方式在 Beanstalk 平台部屬 (dep...
Read More
王思元
6:15 下午
服務部署
,
AWS
,
nginx
AWS Beanstalk: HTTP 502 Upstream sent too big header while reading response header from upstream
最近檢查即將上線的服務,發現主要服務經常發生 HTTP 500 的錯誤,從 logs 中確認是其中某個 REST 微服務回應 HTTP 502 Bad Gateway 所導致的,因而從中翻翻閱該微服務的全部 logs,並找到出錯原因以及解決方法。
Read More
王思元
6:30 下午
服務部署
,
AWS
,
nginx
Unity C# Interface, Inheritance and Component:以狀態血量設計為例
最近同事分享之前受訓所學的 Design patterns,加上看到社群有人詢問血量設計問題,因此整理關於在 Unity 中,設計血量系統的可能實作方法。 不得不說,剛從學校畢業開始接觸 Unity 時,最優先採用的是類別繼承 (class inheritance),...
Read More
王思元
1:16 下午
軟體工程
,
C-sharp
,
Unity
Unity C# Inheritance vs Composition 繼承與組件式設計之戰鬥系統經驗談
基於一些機緣而回憶之前身為初心者所掉過的坑,到底應該是使用繼承 (Inheritance) 抑或是組合 (Composition) 方式來設計遊戲中的戰鬥系統,哪一種比較適合 持續變動的遊戲開發 ?
Read More
王思元
11:15 下午
軟體工程
,
Unity
較新的文章
較舊的文章
粉絲專頁
本週熱門
網誌存檔
贊助廣告
粉絲專頁
每周熱門
Unity WebRequest
在 Unity 建立 Web Request,向指定網址資源送出 HTTP 要求 (Request),等待遠端伺服器回應 (Response),抓取回應得資料內容 (Content) 進行處理。 關於 HTTP 的資料傳輸結構,可以參考的「 HTTP 淺談,使用 PostMa...
TortoiseGit 配置 PuTTY Key
每次使用 TortoiseGit 進行專案遠端的 Pull/Push 都需要輸入一次認證,次數多了覺得麻煩懶惰,怎麼沒法記憶認證密碼這一回事?原來只是不會用而已…,以下筆記使用 PuTTY 建立 SSH Key,讓 Git 使用 SSH Key 認證,而不用每次進行遠端操作時,...
Unity rendering order 整理筆記
自從上次 GameJam 體驗在 Unity 中,使用 SpriteRenderer 可直接調整 Sorting layer 來決定 render 順序後,便一直很好奇其背後實作到底是什麼,為什麼改變一個數值便能調整 sprites 在 render 結果的先後順序,而不...
Unity Platformer 2D: Character Animations
延續上一篇 Character 2D Movement using Physical in Unity 的練習,繼續使用 FGJ 活動中,團隊所繪製的素材繼續練習。這次要結合之前的角色移動以及跳躍功能,加上播放對應的動畫。 Prepare Animation Clips...
Unity Prefabs 之使用方式筆記
Prefab (預製物件) 是在 Unity 中經常被使用的機制之一,能將 GameObject 以及其 Components 的屬性狀態儲存為單一個 Asset。當 Prefab 屬性調整時,Unity 能夠自動更新放置在場景 (Scenes) 中的實體物件 (Prefa...
Rebase a fork using TortoiseGit
工作需求,要將 Fork 專案 (某個 Repository 的副本),對於原始的 Repository,做一次 Rebase 更新基底程式碼,簡單紀錄概念以及操作步驟。 想法概念 下面兩張圖解釋一切,希望 Master 後續的版本更新(Commits),能讓 Featur...
Unity Platformer 2D: Character Movement using Physical
物理與碰撞 想要在 Unity 中使用其物理引擎控制 2D 遊戲物件,Rigidbody2D,這一個組件(Component)是最重要的核心。把 Rigidbody2D 加上 2D 碰撞體(2D Colliders)放在同一個 GameObject 上,即可在遊戲中看到自由落...
Script GUIDs Remapping in Unity
需求,大量修改專案中的 GUIDs,並且保證 Assets 中參考不會遺失 (Reference missing)。 發現問題 剛開始時,只有一個 Unity 遊戲專案要弄,版本控制使用 Git,建立 Git repository 來放置專案所有資源 ,我們將專案架構分成下...
Unity Editor: Apply multiple prefabs
這是一段在 Unity Editor 中小工具 (test on Unity5.3.5),一次操作對在場景中每一個選取的 Prefab objects,執行 Apply 將修改寫入到 Prefab 資料中。 文章結構先說結論,先介紹程式碼以及已知議題 (Issues),再說明...
Golang server + WebSocket protocol + Unity C# client
研究資料傳輸方案,運用在工作專案中可能性的筆記。嘗試使用 Golang 開發伺服器 (Server),經由 WebSocket protocol 與使用 Unity C# 開發的用戶端 (Client) 串接。實作一個的應答伺服器 (Echo server),用戶端傳什麼給伺服...
網誌存檔
▼
2018
( 27 )
►
10月
( 1 )
►
9月
( 1 )
►
8月
( 1 )
►
6月
( 3 )
►
5月
( 5 )
►
4月
( 4 )
►
3月
( 1 )
►
2月
( 6 )
▼
1月
( 5 )
AWS Beanstalk: Cannot open shared object file and ...
AWS Beanstalk: Configuring the proxy server - Keep...
AWS Beanstalk: HTTP 502 Upstream sent too big head...
Unity C# Interface, Inheritance and Component:以狀態血...
Unity C# Inheritance vs Composition 繼承與組件式設計之戰鬥系統經驗談
►
2017
( 59 )
►
12月
( 4 )
►
11月
( 3 )
►
10月
( 6 )
►
9月
( 5 )
►
8月
( 5 )
►
7月
( 5 )
►
6月
( 5 )
►
5月
( 4 )
►
4月
( 5 )
►
3月
( 8 )
►
2月
( 6 )
►
1月
( 3 )
►
2016
( 44 )
►
12月
( 3 )
►
11月
( 2 )
►
10月
( 6 )
►
9月
( 4 )
►
8月
( 5 )
►
7月
( 4 )
►
6月
( 4 )
►
5月
( 2 )
►
4月
( 2 )
►
3月
( 3 )
►
2月
( 6 )
►
1月
( 3 )
►
2015
( 1 )
►
12月
( 1 )
贊助廣告