--- title: 'JL_CloudMachine專案建置' disqus: 'JL_CloudMachine' --- # 專案建置 [TOC] ## bitbucket取得專案 1. 開啟 [bitbucket](http://bitbucket.jumbogames.com.tw:7990/projects/) 2. 登入公司帳號  3. 進入 Project - CloudGame  4. clone 專案  --------------------- ## 新專案初始化建置 1. 複製原始專案傳至新空專案資料夾 2. 加入ignore 忽略不用上傳檔案  3-1.刪除需替換資料夾內容 :::info Assets\CommonAssets Assets\Scripts\Common Assets\Scripts\Protocol Assets\ThirdParty\JumboFramework Assets\ThirdParty\JumboShader Assets\ThirdParty\SCG_Script Assets\ThirdParty\Spine ::: 3-2. 添增以下圖示submodules  `備註: Spine 資料夾移至CommonAssets\ThirdParty\Spine, 無須額外新增` ##### 作法一: a. 加入.gitmodules 子物件模組  ```c#= [submodule "Assets/Scripts/Common"] path = Assets/Scripts/Common url = http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/common.git [submodule "Assets/CommonAssets"] path = Assets/CommonAssets url = http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/commonassets.git [submodule "Assets/ThirdParty/JumboFramework"] path = Assets/ThirdParty/JumboFramework url = http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/jumboframework.git [submodule "Assets/ThirdParty/JumboShader"] path = Assets/ThirdParty/JumboShader url = http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/jumboshader.git [submodule "Assets/Scripts/Protocol"] path = Assets/Scripts/Protocol url = http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/protocal.git [submodule "Assets/ThirdParty/SCG_Script"] path = Assets/ThirdParty/SCG_Script url = http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/scg_script.git ``` :::warning :::spoiler .gitmodules檔案細節說明 使用 `git submodule add <url> <path>` 添加模組路徑 ::: b.命令提示字元執行 `git submodule update --init --recursive` 下載模組 ##### 作法二: a. 至sourcetree 右鍵 Add Submodules  b. 填入URL 及 資料夾路徑  ``` 1. Assets/Scripts/Common http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/common.git 2. Assets/CommonAssets http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/commonassets.git 3. Assets/ThirdParty/JumboFramework http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/jumboframework.git 4. Assets/ThirdParty/JumboShader http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/jumboshader.git 5. Assets/Scripts/Protocol http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/protocal.git 6. Assets/ThirdParty/SCG_Script http://bitbucket.jumbogames.com.tw:7990/scm/cloudlobby/scg_script.git ``` 4. Commit 初始化建置 --------------------- ## 開啟遊戲 1. **登入帳號**   - Account: ==55dbfb8a-1884-4914-a82b-0f34030e6eb0== - Password: ==memberID== :arrow_right: memberID要找後端開帳號 找```Alex(小翔)```  2. 設定Game尺寸: D27: 上螢幕+下螢幕 ==1920x2160== D27: TPC ==1280x800== P43: 上螢幕+下螢幕 ==2160x3840== Samsung S8平板: ==2560x1600== 小米平板: ==2000x1200==  2. **debug設定**  ## 添加雲端機台相關設定 1. **加入語系** 開啟SlotScene場景(Assets\Scenes\SlotScene)  將LanguageService加至場景上(Assets\CommonAssets\Prefabs\LanguageService)  腳本Language Font Datas欄位掛載語系  Eng: (Assets\CommonAssets\SourceFiles\Font\LangENG\arialbd Tch: (Assets\CommonAssets\SourceFiles\Font\LangTCH\msjhbd Sch: (Assets\CommonAssets\SourceFiles\Font\LangSCH\msjhbd 2. **加入攝影機** SlotScene場景 加入兩個攝影機  主場景鏡頭: Culling Mask: ==UI==、==UI_Particle==  TPC鏡頭:  3. **加入IOController** SlotScene場景 加入鍵盤操控  將IOController加至場景上(Assets\Scripts\Common\Controller\IOController)  4. **加入工具**  ----==GameSettingSetter== 設定->:link:[CBW模組使用文件](https://hackmd.io/T3crS5hNTr6wTLB9k1Lf6g) ----==RNGSettingForMath== 設定->從模板複製至專案資料夾(Assets\Scripts\Common\ValueObject -> Assets\ScriptableObjects)   至腳本```SetNextRoundRNGView```欄位掛載RNG設定  ----==ReelSettingTool== 掛上遊戲的```ReelSettingg設定```  5. **加入場景** 開啟BaseScene場景(Assets\Scenes\BaseScene)  ----從模板複製至專案資料夾(Assets\CommonAssets\Prefabs -> Assets\Prefabs\專案名)   至BaseScene添加prefab ----從模板複製至專案資料夾(Assets\CommonAssets\UI\Prefabs -> Assets\Prefabs\專案名)   至腳本```SlotCommonView```欄位掛載場景 ----掛載CBW: ~~CBW(舊版)~~  CBW(新版公版)-Canvas_Credit_Bar_Common  6. **GameCamera調整**  --  --  ## 遊戲製作相關設定 1. 調整InitFlow  - 增加開發年分  - 加入Gamble   2. ###### tags: `CloudMachine` `JL` `RD`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up