Compare commits

..

No commits in common. "1f0db6c4a9488ee04d72e79b700c22a027bd6e10" and "7d9755aaf0e82c6648e282083d06a7aa23bbff8c" have entirely different histories.

6 changed files with 420 additions and 492 deletions

File diff suppressed because it is too large Load Diff

View File

@ -79,7 +79,6 @@ export default class MapConroler extends cc.Component {
mapHeight: number = 0;
wallNum: number = 0;
blockNum: number = 0;
reviewState: boolean = false;
mapBlocksWall: any; //地图的所有底块
mapInfo: any; //地图除了底块的其他信息
blocks: any; //方块数组
@ -136,7 +135,6 @@ export default class MapConroler extends cc.Component {
this.gameWin = false;
this.gameOver = false;
this.gameStart = false;
this.reviewState = false;
this.homeCanTouch = true;
this.againCanTouch = true;
this.new_mode = 0;
@ -1316,12 +1314,6 @@ export default class MapConroler extends cc.Component {
}
winLevel() {
if(this.node.parent.parent.getChildByName("Win").
getChildByName("nextBtn").getComponent("btnControl")._touch == false){
return;
}
this.node.parent.parent.getChildByName("Win").
getChildByName("nextBtn").getComponent("btnControl").setTouch(false);
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
if (cc.fx.GameConfig.GM_INFO.level > 156) {
cc.fx.GameConfig.GM_INFO.level = 156;
@ -1410,10 +1402,6 @@ export default class MapConroler extends cc.Component {
}
reviewLevel() {
if(this.reviewState == true){
return;
}
this.reviewState = true;
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
let coin = 900;
if (cc.fx.GameConfig.GM_INFO.review == 1) coin = 1900;
@ -1421,7 +1409,6 @@ export default class MapConroler extends cc.Component {
// console.log("自身金币:",cc.fx.GameConfig.GM_INFO.coin,"消耗金币:",coin);
if (cc.fx.GameConfig.GM_INFO.coin < Math.abs(coin)) {
MiniGameSdk.API.showToast("金币不足,无法加时间");
this.reviewState = false;
return;
}
else {
@ -1442,9 +1429,6 @@ export default class MapConroler extends cc.Component {
this.add_Time += 20;
this.pause = false;
this.node.parent.parent.getChildByName("Lose").active = false;
setTimeout(() => {
this.reviewState = false;
}, 200);
this.startTimeCutDown();
}
@ -1479,7 +1463,7 @@ export default class MapConroler extends cc.Component {
return;
}
// MiniGameSdk.API.showToast("体力值减少");
MapConroler._instance = null;
// MapConroler._instance = null;
cc.fx.GameConfig.LEVEL_INFO_init(false, 0);
if (this.new_mode == 3) {
this.node.parent.parent.getChildByName("Win").active = false;

View File

@ -314,9 +314,7 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a4e3a13a-44b8-4fc2-9b34-e72554a59deb"
},
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -328,9 +326,7 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "d2adfa00-68ea-4d63-97a0-44fca153a2d7"
},
"_atlas": null,
"_id": ""
},
{

View File

@ -1,25 +0,0 @@
{
"setting": {
"es6": true,
"postcss": true,
"minified": true,
"uglifyFileName": false,
"enhance": true,
"packNpmRelationList": [],
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerPlugins": false
},
"compileType": "game",
"simulatorPluginLibVersion": {},
"packOptions": {
"ignore": [],
"include": []
},
"isGameTourist": false,
"appid": "wxdd145ced49158a1e",
"editorSetting": {}
}

View File

@ -1,14 +0,0 @@
{
"libVersion": "3.8.10",
"projectname": "colorBlcok",
"setting": {
"urlCheck": true,
"coverView": true,
"lazyloadPlaceholderEnable": false,
"skylineRenderEnable": false,
"preloadBackgroundData": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"compileHotReLoad": true
}
}

View File

@ -12,7 +12,7 @@
"webOrientation": "portrait",
"inlineSpriteFrames": true,
"inlineSpriteFrames_native": true,
"mainCompressionType": "subpackage",
"mainCompressionType": "default",
"mainIsRemote": false,
"optimizeHotUpdate": false,
"md5Cache": true,