Commit 3076382d authored by 杨一航's avatar 杨一航

feat:v0.92

parent f9363f0b
......@@ -383,8 +383,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else if (item.data.type == "SERVER_gameSettleEnd") {
this.gameLayerCom.hide()
await asyncDelay(0.5);
this.myInfoCom.init(this.data.myInfo);
this.myInfoCom.show();
......
......@@ -42,7 +42,7 @@ export class AI {
await asyncDelay(time);
let index = 0;
if (Math.random() <= 1 - this.anspronum) {
if (Math.random() <= this.anspronum) {
index = rigthIndex;
} else {
index = Math.floor(Math.random() * 3.99);
......
......@@ -54,12 +54,12 @@ export default class EndLayer extends cc.Component {
this.winRoot.active = false;
let root = this.loseRoot;
if (data.blueRight >= data.redRight) {
if (data.status.blueRight >= data.status.redRight) {
root = this.winRoot;
}
root.active = true;
root.opacity = 0;
cc.tween(root).delay(0.5).to(1, { opacity: 255 }).start();
cc.tween(root).delay(0.45).to(1, { opacity: 255 }).start();
this.blueHead.getComponent(Player).init(mydata.url);
this.blueName.string = mydata.name;
......
......@@ -126,6 +126,7 @@ export default class GameLayer extends cc.Component {
async initQuestion(question, index) {
this.rootCover.active = false;
this.questionBar.active = false;
this.rightIndex = question.rightIndex;
......@@ -136,6 +137,7 @@ export default class GameLayer extends cc.Component {
await asyncDelay(1);
this.rootCover.active = false;
this.totaltime = 10.2;
this.countTime = 0;
this.questionBar.active = true;
......@@ -225,7 +227,7 @@ export default class GameLayer extends cc.Component {
cc.tween(this.blueBar).to(0.35, { x: this.blueX - cc.winSize.width }, { easing: "sineIn" }).start()
cc.tween(this.redBar).to(0.35, { x: this.redX + cc.winSize.width }, { easing: "sineIn" }).start()
cc.tween(this.cupStart).to(0.5, { x: this.cupEnd.x, y: this.cupEnd.y, scale: this.cupEnd.scale }).call(() => {
cc.tween(this.cupStart).to(0.6, { x: this.cupEnd.x, y: this.cupEnd.y, scale: this.cupEnd.scale }).call(() => {
this.node.active = false;
}).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