Commit d7cee86e authored by Friends233's avatar Friends233

配置修改

parent 8fd33eda
......@@ -16,6 +16,12 @@ export const CUSTOM_EVENT = {
/** 销毁游戏场景 */
GAME_DESTROY: 'GAME_DESTROY'
}
/** 游戏进度颜色 */
export const GameColors = [
['#EC5F33', '#E52800', '#CA1D00'],
['#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'],
['#FFD34A', '#FFC300', '#FFB637', '#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00']
]
export const Config = {
/** 爪子能伸出去的长度 */
......@@ -50,8 +56,6 @@ export const Config = {
num: 10,
/** 倒计时 */
cds: 30,
/** 游戏进度颜色 */
colors: ['#EC5F33', '#E52800', '#CA1D00'],
},
{
level: 1,
......@@ -59,8 +63,6 @@ export const Config = {
num: 5,
/** 倒计时 */
cds: 30,
/** 游戏进度颜色 */
colors: ['#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'],
},
{
level: 1,
......@@ -68,8 +70,6 @@ export const Config = {
num: 8,
/** 倒计时 */
cds: 30,
/** 游戏进度颜色 */
colors: ['#FFD34A', '#FFC300', '#FFB637', '#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00']
}
],
......
......@@ -7,7 +7,7 @@
import Svga from "./Components/Svga/Svga";
import { SvgaEvent } from "./Components/Svga/SvgaEvent";
import { CUSTOM_EVENT, Config } from "./Config/GameConfig";
import { CUSTOM_EVENT, Config, GameColors } from "./Config/GameConfig";
import exportEvent from "./exportEvent";
import { getProbability, getRandomArrayElements, loadGameResources, numToChinese, randomNum, getUrlParam } from "./utils";
const { ccclass, property } = cc._decorator;
......@@ -327,7 +327,7 @@ export default class GameScene extends cc.Component {
this.surplusStar--
if (key >= this.levelObjectives) return
const node = cc.instantiate(this.procItem), colors = this.actLevelInfo.colors || []
const node = cc.instantiate(this.procItem), colors = GameColors?.[this.actLevel] || []
node.color = cc.color(colors[key] || this.gameConfig.defaultColor)
node.setParent(proc)
this.starNum++
......
This diff is collapsed.
......@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>-->
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681734981276/style-mobile.css"/>
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681784379508/style-mobile.css"/>
<style>
......@@ -90,9 +90,9 @@
</div>
</div>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681734981276/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681784379508/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681734981276/main.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681784379508/main.js" charset="utf-8"></script>
<script type="text/javascript">
(function () {
......
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681734981276/";
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681784379508/";
window.__remoteAssets__ = window.__remoteUrl__ + "assets/";
window.__version__ = 1681734981276;
window.__version__ = 1681784379508;
window.__ENV__ = "prod";
window.boot = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment