Commit d7cee86e authored by Friends233's avatar Friends233

配置修改

parent 8fd33eda
...@@ -16,6 +16,12 @@ export const CUSTOM_EVENT = { ...@@ -16,6 +16,12 @@ export const CUSTOM_EVENT = {
/** 销毁游戏场景 */ /** 销毁游戏场景 */
GAME_DESTROY: 'GAME_DESTROY' 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 = { export const Config = {
/** 爪子能伸出去的长度 */ /** 爪子能伸出去的长度 */
...@@ -50,8 +56,6 @@ export const Config = { ...@@ -50,8 +56,6 @@ export const Config = {
num: 10, num: 10,
/** 倒计时 */ /** 倒计时 */
cds: 30, cds: 30,
/** 游戏进度颜色 */
colors: ['#EC5F33', '#E52800', '#CA1D00'],
}, },
{ {
level: 1, level: 1,
...@@ -59,8 +63,6 @@ export const Config = { ...@@ -59,8 +63,6 @@ export const Config = {
num: 5, num: 5,
/** 倒计时 */ /** 倒计时 */
cds: 30, cds: 30,
/** 游戏进度颜色 */
colors: ['#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'],
}, },
{ {
level: 1, level: 1,
...@@ -68,8 +70,6 @@ export const Config = { ...@@ -68,8 +70,6 @@ export const Config = {
num: 8, num: 8,
/** 倒计时 */ /** 倒计时 */
cds: 30, cds: 30,
/** 游戏进度颜色 */
colors: ['#FFD34A', '#FFC300', '#FFB637', '#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00']
} }
], ],
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
import Svga from "./Components/Svga/Svga"; import Svga from "./Components/Svga/Svga";
import { SvgaEvent } from "./Components/Svga/SvgaEvent"; 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 exportEvent from "./exportEvent";
import { getProbability, getRandomArrayElements, loadGameResources, numToChinese, randomNum, getUrlParam } from "./utils"; import { getProbability, getRandomArrayElements, loadGameResources, numToChinese, randomNum, getUrlParam } from "./utils";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -327,7 +327,7 @@ export default class GameScene extends cc.Component { ...@@ -327,7 +327,7 @@ export default class GameScene extends cc.Component {
this.surplusStar-- this.surplusStar--
if (key >= this.levelObjectives) return 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.color = cc.color(colors[key] || this.gameConfig.defaultColor)
node.setParent(proc) node.setParent(proc)
this.starNum++ this.starNum++
......
This diff is collapsed.
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>--> <!-- <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> <style>
...@@ -90,9 +90,9 @@ ...@@ -90,9 +90,9 @@
</div> </div>
</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"> <script type="text/javascript">
(function () { (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.__remoteAssets__ = window.__remoteUrl__ + "assets/";
window.__version__ = 1681734981276; window.__version__ = 1681784379508;
window.__ENV__ = "prod"; window.__ENV__ = "prod";
window.boot = function () { 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