Commit e1309f86 authored by 杨一航's avatar 杨一航

fix

parent 9beace3b
......@@ -239,6 +239,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
const cover = cc.find("Canvas/cover")
cover.scale = this._mapScaleMax;
this.cat.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.COMPLETE, () => {
console.log("ani complite");
......@@ -499,7 +502,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
res = JSON.parse(res);
}
this.log("++++++++++++ _coursewareEnd +++++++++++++++");
this.log("pronunciation=== " + res.result?.pronunciation);
this.log("发音分数: pronunciation=== " + res.result?.pronunciation);
this._coursewareEnd(res.result?.pronunciation || 0,)
});
} else {
......@@ -655,23 +658,26 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio("wrong");
let node = cc.find(`Canvas/road/root/piece${this._status.current}`);
let pos;
let x, y, pos;
if (this._status.jump) {
pos = this._cardList[this._status.jump].position;
x = pos.x + offset;
y = pos.y;
} else {
let Idx = this._status[this._status.current];
if (Idx >= 0) {
pos = this._cardList[Idx].position;
} else {
pos = offset > 0 ? this._blueOriginPos : this._redOriginPos;
pos.x -= offset;
x = pos.x;
y = pos.y;
}
console.log("now idx == " + Idx);
}
await asyncTweenTo(
node,
0.7,
{ x: pos.x + offset, y: pos.y },
{ x: x, y: y },
{ easing: "cubicOut" }
);
node.stopAllActions();
......
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