Commit d92af14b authored by zhangshibin's avatar zhangshibin

1.修复bug

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