Commit d92af14b authored by zhangshibin's avatar zhangshibin

1.修复bug

parent 5eb2aa73
......@@ -1733,8 +1733,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 233,
"height": 223
"width": 168,
"height": 149
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1745,15 +1745,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-521.06,
-626.342,
-528.052,
-627.179,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -4948,7 +4948,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"width": 151,
"height": 0
},
"_anchorPoint": {
......@@ -5684,7 +5684,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"width": 151,
"height": 0
},
"_anchorPoint": {
......
......@@ -492,7 +492,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let targetHeight =
(idx / (board.children.length - 2)) * prograssbar.height;
console.log("进度条高:"+targetHeight);
console.log(idx+"_进度条高:"+targetHeight);
const offsetX = { Red: -45, Blue: 45 };
const offsetY = { Red: -90, Blue: -90 };
......@@ -739,7 +739,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const riData=rightBlock.getComponent("ItemData");
if(riData.jump!=""){
rightBlock=this.jumpBlock(parseInt(riData.jump));
idx = this.getNextRightIdx();
idx = parseInt(riData.jump);//this.getNextRightIdx();
await this.pieceFindRightBlock(rightBlock, idx);
}
......@@ -840,6 +840,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
`Canvas/bg/Life${color.toLowerCase()}/life_${color.toLowerCase()}/mask`
);
const targetHeight = (i / board.children.length) * prograssbar.height;
this.playLocalAudio("movePiece 进度条升高");
cc.tween(mask)
.to(1, { height: targetHeight }, { easing: "cubicInOut" })
.start();
......
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