Commit 540e7d98 authored by linzhiguo's avatar linzhiguo

+ 游戏结束(框架代码)

parent 3a5a2084
...@@ -5365,8 +5365,8 @@ ...@@ -5365,8 +5365,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
379.412, 1656.989,
-756.431, -2046.94,
0, 0,
0, 0,
0, 0,
...@@ -6430,7 +6430,7 @@ ...@@ -6430,7 +6430,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
640, 640,
-69.655, -1346.376,
0, 0,
0, 0,
0, 0,
......
...@@ -518,12 +518,13 @@ cc.Class({ ...@@ -518,12 +518,13 @@ cc.Class({
this._comeon.active = true; this._comeon.active = true;
playDragonBoneAnimation(this._comeon, 'newAnimation', 1, ()=>{ playDragonBoneAnimation(this._comeon, 'newAnimation', 1, ()=>{
this._comeon.active = false; this._comeon.active = false;
this.gameEnd();
}); });
} }
else{ else{
this.playAudioByName('victory'); this.playAudioByName('victory');
this._flower.active = true; this._flower.active = true;
playDragonBoneAnimation(this._flower, 'normal'); playDragonBoneAnimation(this._flower, 'normal', 1, this.gameEnd);
} }
return; return;
} }
...@@ -533,6 +534,12 @@ cc.Class({ ...@@ -533,6 +534,12 @@ cc.Class({
this.updateItem(); this.updateItem();
}, },
gameEnd(){
if (window && window.courseware) {
window.courseware.gameEnd();
}
},
flyIn(cb){ flyIn(cb){
this.flyVirus[0].active = true; this.flyVirus[0].active = true;
this.flyVirus[1].active = true; this.flyVirus[1].active = true;
......
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