更新关卡配置

This commit is contained in:
COMPUTER\EDY 2025-09-19 15:22:49 +08:00
parent c7f8f9e90a
commit fb9db04aa5
6 changed files with 545 additions and 161 deletions

View File

@ -703,8 +703,8 @@ export default class JiaZai extends cc.Component {
startGame() {
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
let version = cc.fx.GameTool.getWechatGameVersion();
if ((cc.fx.GameConfig.GM_INFO.level) > 398 && version != "开发版" && version != "体验版") {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399 && version != "开发版" && version != "体验版") {
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}
@ -731,8 +731,8 @@ export default class JiaZai extends cc.Component {
if (this.custom.string != "") {
cc.fx.GameConfig.GM_INFO.level = parseInt(this.custom.string) - 1;
// cc.fx.StorageMessage.setStorage("level",cc.fx.GameConfig.GM_INFO.level.toString());
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}
@ -742,8 +742,8 @@ export default class JiaZai extends cc.Component {
cc.fx.AudioManager._instance.playEffect("zhuan1", null);
this.node.getChildByName("zhuanchang").active = true;
this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false);
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}
@ -751,8 +751,8 @@ export default class JiaZai extends cc.Component {
}
}
else if (version == "正式版") {
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}
@ -766,8 +766,8 @@ export default class JiaZai extends cc.Component {
if (this.custom.string != "") {
cc.fx.GameConfig.GM_INFO.level = parseInt(this.custom.string) - 1;
// cc.fx.StorageMessage.setStorage("level",cc.fx.GameConfig.GM_INFO.level.toString());
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}
@ -777,8 +777,8 @@ export default class JiaZai extends cc.Component {
cc.fx.AudioManager._instance.playEffect("zhuan1", null);
this.node.getChildByName("zhuanchang").active = true;
this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false);
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}
@ -1536,8 +1536,8 @@ export default class JiaZai extends cc.Component {
let title = "好友帮助通过第" + otherInfo.otherLevel + "关";
MiniGameSdk.API.showToast(title);
cc.fx.GameConfig.GM_INFO.level = otherInfo.otherLevel;
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
cc.fx.GameConfig.GM_INFO.level = 399;
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
cc.fx.GameConfig.GM_INFO.level = 400;
}
const timestamp = Date.now();
const levelInfo = {

View File

@ -1922,9 +1922,9 @@ export default class MapConroler extends cc.Component {
}
}
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
console.log("6现在关卡数", cc.fx.GameConfig.GM_INFO.level);
cc.fx.GameConfig.GM_INFO.level = 399;
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}

View File

@ -324,9 +324,9 @@ export class GameConfig {
var self = this;
if ((cc.fx.GameConfig.GM_INFO.level) > 398) {
if ((cc.fx.GameConfig.GM_INFO.level) > 399) {
console.log("7现在关卡数", cc.fx.GameConfig.GM_INFO.level);
cc.fx.GameConfig.GM_INFO.level = 399;
cc.fx.GameConfig.GM_INFO.level = 400;
MiniGameSdk.API.showToast("关卡每周更新,敬请期待!");
return;
}

View File

@ -9,36 +9,6 @@
],
"time": 150,
"gap": [
{
"x": 1,
"y": 2,
"z": 0
},
{
"x": 1,
"y": 1,
"z": 0
},
{
"x": 2,
"y": 2,
"z": 0
},
{
"x": 2,
"y": 1,
"z": 0
},
{
"x": 3,
"y": 2,
"z": 0
},
{
"x": 3,
"y": 1,
"z": 0
},
{
"x": 7,
"y": 9,
@ -68,23 +38,42 @@
"x": 9,
"y": 8,
"z": 0
},
{
"x": 1,
"y": 2,
"z": 0
},
{
"x": 1,
"y": 1,
"z": 0
},
{
"x": 2,
"y": 2,
"z": 0
},
{
"x": 2,
"y": 1,
"z": 0
},
{
"x": 3,
"y": 2,
"z": 0
},
{
"x": 3,
"y": 1,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 3,
"color": 3,
"type": 0,
"position": {
"x": 300,
"y": -540,
"z": 0
},
"id": 210
},
{
"block": 5,
"color": 5,
@ -94,7 +83,7 @@
"y": -300,
"z": 0
},
"id": 220
"id": 210
},
{
"block": 1,
@ -105,62 +94,7 @@
"y": 180,
"z": 0
},
"id": 230
},
{
"block": 5,
"color": 4,
"type": 0,
"position": {
"x": 540,
"y": -540,
"z": 0
},
"id": 240
},
{
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": 180,
"y": -420,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 9,
"type": 0,
"position": {
"x": 300,
"y": 60,
"z": 0
},
"id": 260
},
{
"block": 4,
"color": 9,
"type": 0,
"position": {
"x": 540,
"y": -60,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": -420,
"y": -60,
"z": 0
},
"id": 280
"id": 220
},
{
"block": 1,
@ -171,40 +105,73 @@
"y": -60,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 10,
"type": 2,
"position": {
"x": -60,
"y": 420,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 10,
"type": 2,
"position": {
"x": 420,
"y": 180,
"z": 0
},
"id": 310
"id": 230
},
{
"block": 2,
"color": 6,
"type": 2,
"color": 1,
"type": 0,
"position": {
"x": 300,
"x": -420,
"y": -60,
"z": 0
},
"id": 240
},
{
"block": 5,
"color": 4,
"type": 0,
"position": {
"x": 540,
"y": -540,
"z": 0
},
"id": 250
},
{
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": 180,
"y": -420,
"z": 0
},
"id": 320
"id": 260
},
{
"block": 3,
"color": 3,
"type": 0,
"position": {
"x": 300,
"y": -540,
"z": 0
},
"id": 270
},
{
"block": 4,
"color": 9,
"type": 0,
"position": {
"x": 540,
"y": -60,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 9,
"type": 0,
"position": {
"x": 300,
"y": 60,
"z": 0
},
"id": 290
},
{
"block": 0,
@ -215,7 +182,7 @@
"y": 60,
"z": 0
},
"id": 330
"id": 300
},
{
"block": 0,
@ -226,6 +193,39 @@
"y": 60,
"z": 0
},
"id": 310
},
{
"block": 0,
"color": 10,
"type": 2,
"position": {
"x": 420,
"y": 180,
"z": 0
},
"id": 320
},
{
"block": 1,
"color": 10,
"type": 2,
"position": {
"x": -60,
"y": 420,
"z": 0
},
"id": 330
},
{
"block": 2,
"color": 6,
"type": 2,
"position": {
"x": 300,
"y": -420,
"z": 0
},
"id": 340
},
{
@ -239,18 +239,6 @@
},
"id": 350
},
{
"block": 22,
"color": 5,
"type": 3,
"position": {
"x": 180,
"y": -180,
"z": 0
},
"lockTime": 6,
"id": 360
},
{
"block": 16,
"color": 10,
@ -261,7 +249,7 @@
"z": 0
},
"stacking": 4,
"id": 370
"id": 360
},
{
"block": 17,
@ -272,8 +260,8 @@
"y": 180,
"z": 0
},
"stacking": 7,
"id": 380
"stacking": 6,
"id": 370
},
{
"block": 20,
@ -284,8 +272,8 @@
"y": 60,
"z": 0
},
"stacking": 11,
"id": 390
"stacking": 10,
"id": 380
},
{
"block": 22,
@ -297,6 +285,18 @@
"z": 0
},
"stacking": 3,
"id": 390
},
{
"block": 22,
"color": 5,
"type": 3,
"position": {
"x": 180,
"y": -180,
"z": 0
},
"lockTime": 6,
"id": 400
}
]

View File

@ -0,0 +1,378 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "400",
"map": [
7,
9
],
"time": 125,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": 60,
"y": -180,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": 60,
"y": 60,
"z": 0
},
"id": 220
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 60,
"y": 300,
"z": 0
},
"id": 230
},
{
"block": 19,
"color": 2,
"type": 0,
"position": {
"x": -60,
"y": -420,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 300,
"y": -60,
"z": 0
},
"id": 250
},
{
"block": 1,
"color": 10,
"type": 0,
"position": {
"x": -60,
"y": 180,
"z": 0
},
"id": 260
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -180,
"y": -60,
"z": 0
},
"id": 270
},
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": 300,
"y": 180,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 3,
"type": 0,
"position": {
"x": -180,
"y": -300,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 300,
"y": -300,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 5,
"type": 1,
"position": {
"x": -60,
"y": -60,
"z": 0
},
"stacking": 3,
"id": 310
},
{
"block": 0,
"color": 2,
"type": 1,
"position": {
"x": -60,
"y": 60,
"z": 0
},
"stacking": 5,
"id": 320
},
{
"block": 0,
"color": 10,
"type": 1,
"position": {
"x": -60,
"y": 300,
"z": 0
},
"stacking": 3,
"id": 330
},
{
"block": 0,
"color": 9,
"type": 1,
"position": {
"x": -60,
"y": -180,
"z": 0
},
"stacking": 8,
"id": 340
},
{
"block": 0,
"color": 7,
"type": 1,
"position": {
"x": 180,
"y": -180,
"z": 0
},
"stacking": 1,
"id": 350
},
{
"block": 0,
"color": 4,
"type": 1,
"position": {
"x": 180,
"y": -60,
"z": 0
},
"stacking": 1,
"id": 360
},
{
"block": 0,
"color": 8,
"type": 1,
"position": {
"x": 180,
"y": 60,
"z": 0
},
"stacking": 10,
"id": 370
},
{
"block": 0,
"color": 8,
"type": 1,
"position": {
"x": 180,
"y": 300,
"z": 0
},
"stacking": 6,
"id": 380
},
{
"block": 20,
"color": 4,
"type": 4,
"position": {
"x": 300,
"y": -420,
"z": 0
},
"freezeTime": 10,
"id": 390
},
{
"block": 2,
"color": 3,
"type": 4,
"position": {
"x": 60,
"y": -420,
"z": 0
},
"freezeTime": 11,
"id": 400
}
]
],
"WALL_INFO": [
[
{
"id": 401,
"num": 1,
"color": 7,
"special": 0,
"length": 2
},
{
"id": 402,
"num": 2,
"color": 7,
"special": 0,
"length": 0
},
{
"id": 403,
"num": 5,
"color": 1,
"special": 0,
"length": 2
},
{
"id": 404,
"num": 6,
"color": 1,
"special": 0,
"length": 0
},
{
"id": 405,
"num": 8,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 406,
"num": 10,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 407,
"num": 12,
"color": 3,
"special": 5,
"length": 1
},
{
"id": 408,
"num": 14,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 409,
"num": 16,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 410,
"num": 22,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 411,
"num": 23,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 412,
"num": 18,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 413,
"num": 19,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 414,
"num": 13,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 415,
"num": 15,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 416,
"num": 11,
"color": 6,
"special": 5,
"length": 1
},
{
"id": 417,
"num": 7,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 418,
"num": 9,
"color": 10,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,6 @@
{
"ver": "1.0.2",
"uuid": "3c71efb6-bf50-43a4-a495-58ab085e1b24",
"importer": "json",
"subMetas": {}
}