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

fix

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