This commit is contained in:
COMPUTER\EDY 2026-08-21 10:31:35 +08:00
parent 0986cfd813
commit 2fea164891

View File

@ -21,7 +21,7 @@ const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class MapConroler extends cc.Component { export default class MapConroler extends cc.Component {
private MAX_RETRY_COUNT = 6; // 最大重试次数 private MAX_RETRY_COUNT = 6; // 最大重试次数
private readonly reviveCoinCosts: number[] = [500, 700, 900, 1100, 1300, 1500]; private readonly reviveCoinCosts: number[] = [500, 500, 500, 500, 500, 500];
private _blocksEmptyTime: number | null = null; // 保底机制计时 private _blocksEmptyTime: number | null = null; // 保底机制计时
static _instance: any; static _instance: any;
@property(cc.SpriteAtlas) @property(cc.SpriteAtlas)
@ -598,7 +598,7 @@ export default class MapConroler extends cc.Component {
let data = { let data = {
"is_frenzy": this.is_frenzy, "is_frenzy": this.is_frenzy,
"infinity": endLevel, "infinity": endLevel,
"win_streak": cc.fx.GameConfig.GM_INFO.winStreak, "win_streak": cc.fx.GameConfig.GM_INFO.winStreak,
} }
if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) { if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
cc.fx.GameConfig.GM_INFO.winState = false; cc.fx.GameConfig.GM_INFO.winState = false;
@ -700,7 +700,7 @@ export default class MapConroler extends cc.Component {
this.freezeWall = []; this.freezeWall = [];
this.lockWall = []; this.lockWall = [];
this.riseFallBlock = []; this.riseFallBlock = [];
this.vineBlock = []; this.vineBlock = [];
this.mapBlockArray = []; this.mapBlockArray = [];
this.freezeArray = []; this.freezeArray = [];
this.questionArray = []; this.questionArray = [];
@ -758,7 +758,7 @@ export default class MapConroler extends cc.Component {
this.mapBlocksWall[i].push(block); this.mapBlocksWall[i].push(block);
} }
} }
this.initVine(risefall); this.initVine(risefall);
setTimeout(() => { setTimeout(() => {
this.wallInit(); this.wallInit();
this.blockInit(); this.blockInit();
@ -2261,7 +2261,7 @@ export default class MapConroler extends cc.Component {
// 返回值:true表示可以落点,false表示被伸缩杆占用不能落点 // 返回值:true表示可以落点,false表示被伸缩杆占用不能落点
// ============================================ // ============================================
judgeStick(point) { judgeStick(point) {
if (!this.judgeVine(point)) return false; if (!this.judgeVine(point)) return false;
if (this.stickWallArray.length == 0) return true; if (this.stickWallArray.length == 0) return true;
if (this.mapBlocksWall[point.x][point.y]) { if (this.mapBlocksWall[point.x][point.y]) {
if (this.mapBlocksWall[point.x][point.y].getChildByName("stick").active == true) { if (this.mapBlocksWall[point.x][point.y].getChildByName("stick").active == true) {
@ -3284,7 +3284,7 @@ export default class MapConroler extends cc.Component {
// 2. 如果有道具,触发对应的道具效果 // 2. 如果有道具,触发对应的道具效果
// ============================================ // ============================================
special_Treatment(node, type, prop) { special_Treatment(node, type, prop) {
this.shrinkVine(); this.shrinkVine();
let freezeBlock = this.node.children.filter(child => { let freezeBlock = this.node.children.filter(child => {
if (child.getComponent("Block")) { if (child.getComponent("Block")) {
if (child.getComponent("Block").type == 4) if (child.getComponent("Block").type == 4)
@ -4229,7 +4229,7 @@ export default class MapConroler extends cc.Component {
// } // }
// }); // });
setTimeout(() => { setTimeout(() => {
this.node.parent.parent.parent.getChildByName("Pause").active = false; this.node.parent.parent.parent.getChildByName("Pause").active = false;
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) { if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false, true); cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false, true);
} else { } else {