Commit 8143f018 authored by limingzhe's avatar limingzhe

fix: debug

parent 7bdd613d
...@@ -532,10 +532,8 @@ cc.Class({ ...@@ -532,10 +532,8 @@ cc.Class({
this.initDebugLayer(); this.initDebugLayer();
console.log(' in initView 2'); console.log(' in initView 2');
this.initCat(); this.initCat();
}, },
...@@ -994,6 +992,7 @@ cc.Class({ ...@@ -994,6 +992,7 @@ cc.Class({
//调起检测 //调起检测
startTesting() { startTesting() {
this.isGameEnd = false; this.isGameEnd = false;
this.startHelper(); this.startHelper();
...@@ -1130,6 +1129,7 @@ cc.Class({ ...@@ -1130,6 +1129,7 @@ cc.Class({
// para.color_regions = colorRegions; // para.color_regions = colorRegions;
para.color_regions = partRegions; para.color_regions = partRegions;
this.curCheckGroup = this.CHECK_TYPE_COLOR; this.curCheckGroup = this.CHECK_TYPE_COLOR;
this.preloadColorSpr();
break; break;
case "6": case "6":
...@@ -1192,6 +1192,13 @@ cc.Class({ ...@@ -1192,6 +1192,13 @@ cc.Class({
}, },
preloadColorSpr() {
for (let i=0; i<20000; i+=2) {
const colorNode = this.getColorBgColorDot(0, 0, this.colorUnit, this.colorUnit);
}
},
getRegionsByGidx(gIdx) { getRegionsByGidx(gIdx) {
const arr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, gIdx); const arr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, gIdx);
...@@ -1802,7 +1809,7 @@ cc.Class({ ...@@ -1802,7 +1809,7 @@ cc.Class({
const g = color[1]; const g = color[1];
const b = color[2]; const b = color[2];
if (!(r > 220 && g > 220 && b > 220)) { if (!(r > 240 && g > 240 && b > 240)) {
// this.colorRectCheckArr[j].colorPoints.push({pointX, pointY, color}); // this.colorRectCheckArr[j].colorPoints.push({pointX, pointY, color});
this.colorRectCheckArr[j].colorPoints.push({}); this.colorRectCheckArr[j].colorPoints.push({});
} }
......
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