---
# System prepended metadata

title: JL_CloudMachine專案建置
tags: [RD, CloudMachine, JL]

---

---
title: 'JL_CloudMachine專案建置'
disqus: 'JL_CloudMachine'
---

# 專案建置
[TOC]

## bitbucket取得專案
1. 開啟 [bitbucket](http://bitbucket.jumbogames.com.tw:7990/projects/)
2. 登入公司帳號
![](https://i.imgur.com/iSiX6xy.png)

3. 進入 Project - CloudGame
![](https://i.imgur.com/lidEh3s.png)

4. clone 專案
![](https://i.imgur.com/JxNsa7i.png)
---------------------

## 新專案初始化建置
1. 複製原始專案傳至新空專案資料夾
2. 加入ignore 忽略不用上傳檔案
![](https://i.imgur.com/woMHMux.png)

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
![](https://i.imgur.com/npKORlY.jpg)
`備註: Spine 資料夾移至CommonAssets\ThirdParty\Spine, 無須額外新增`

##### 作法一:
a. 加入.gitmodules 子物件模組
![](https://i.imgur.com/0DHc6sR.png)
```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
![](https://i.imgur.com/lZqDMI4.png)
b. 填入URL 及 資料夾路徑
![](https://i.imgur.com/QvR8iDv.png)

```
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. **登入帳號**
![](https://i.imgur.com/bgA59F3.png)
![](https://i.imgur.com/wwNLeD5.png)
- Account:
==55dbfb8a-1884-4914-a82b-0f34030e6eb0==
- Password: ==memberID==
:arrow_right: memberID要找後端開帳號 找```Alex(小翔)```
![](https://hackmd.io/_uploads/Bkpwl_B1a.png)



2. 設定Game尺寸:
D27: 上螢幕+下螢幕 ==1920x2160==
D27: TPC ==1280x800==
P43: 上螢幕+下螢幕 ==2160x3840==
Samsung S8平板: ==2560x1600==
小米平板: ==2000x1200==
![](https://hackmd.io/_uploads/Bk7C1gyJT.png)

2. **debug設定**
![](https://hackmd.io/_uploads/H1ZuTVbk6.png)


## 添加雲端機台相關設定
1. **加入語系**
開啟SlotScene場景(Assets\Scenes\SlotScene)
![](https://i.imgur.com/83TiNmF.png)
將LanguageService加至場景上(Assets\CommonAssets\Prefabs\LanguageService)
![](https://i.imgur.com/vLAyL3Q.png)
腳本Language Font Datas欄位掛載語系
![](https://i.imgur.com/rtUTOzZ.png)
Eng: (Assets\CommonAssets\SourceFiles\Font\LangENG\arialbd
Tch: (Assets\CommonAssets\SourceFiles\Font\LangTCH\msjhbd
Sch: (Assets\CommonAssets\SourceFiles\Font\LangSCH\msjhbd

2. **加入攝影機**
SlotScene場景 加入兩個攝影機
![](https://i.imgur.com/uHznSeR.png)
主場景鏡頭:
Culling Mask: ==UI==、==UI_Particle==
![](https://i.imgur.com/uPoopwz.png)
TPC鏡頭:
![](https://hackmd.io/_uploads/S1vE9guk6.png)

3. **加入IOController**
SlotScene場景 加入鍵盤操控
![](https://i.imgur.com/ajtgYJG.png)
將IOController加至場景上(Assets\Scripts\Common\Controller\IOController)
![](https://i.imgur.com/nCkScRl.png)

4. **加入工具**
![](https://hackmd.io/_uploads/B1DMolOk6.png)
----==GameSettingSetter==
設定->:link:[CBW模組使用文件](https://hackmd.io/T3crS5hNTr6wTLB9k1Lf6g)
----==RNGSettingForMath==
設定->從模板複製至專案資料夾(Assets\Scripts\Common\ValueObject  -> Assets\ScriptableObjects)
![](https://hackmd.io/_uploads/rJxAmfOkp.png)
![](https://hackmd.io/_uploads/SJzLBz_k6.png)
至腳本```SetNextRoundRNGView```欄位掛載RNG設定
![](https://hackmd.io/_uploads/H1BZdzOyT.png)
----==ReelSettingTool==
掛上遊戲的```ReelSettingg設定```
![](https://hackmd.io/_uploads/rkMxtfOkT.png)

5. **加入場景**
開啟BaseScene場景(Assets\Scenes\BaseScene)
![](https://i.imgur.com/ReRXa1O.png)
----從模板複製至專案資料夾(Assets\CommonAssets\Prefabs  -> Assets\Prefabs\專案名)
![](https://hackmd.io/_uploads/BkKaymuJa.png)
![](https://hackmd.io/_uploads/SJwwv7dkp.png)
至BaseScene添加prefab
----從模板複製至專案資料夾(Assets\CommonAssets\UI\Prefabs  -> Assets\Prefabs\專案名)
![](https://i.imgur.com/BNIaaMu.png)
![](https://i.imgur.com/zFZr3UJ.png)
至腳本```SlotCommonView```欄位掛載場景
----掛載CBW:
~~CBW(舊版)~~
![](https://i.imgur.com/d4bqSVJ.png)
CBW(新版公版)-Canvas_Credit_Bar_Common
![](https://hackmd.io/_uploads/HkDoK-Oyp.png)

6. **GameCamera調整**
![](https://hackmd.io/_uploads/HyzFcZ_1a.png)
--
![](https://hackmd.io/_uploads/rk6ljbuyp.png)
--
![](https://hackmd.io/_uploads/ry5yiEKJa.png)


## 遊戲製作相關設定
1. 調整InitFlow
![](https://i.imgur.com/an9Qmsz.png)
- 增加開發年分
![](https://i.imgur.com/9LEwOZ9.png)
- 加入Gamble
![](https://i.imgur.com/ueryNtn.png)
![](https://hackmd.io/_uploads/rJC68JO16.png)

2.



###### tags: `CloudMachine` `JL` `RD`
