Commit 45eea3f1 authored by asdf's avatar asdf

调整单词缩放比例,骨骼动画和word音效一起播放

parent 3106af2b
...@@ -82,8 +82,8 @@ cc.Class({ ...@@ -82,8 +82,8 @@ cc.Class({
cc.audioEngine.play(clip, false, 1); cc.audioEngine.play(clip, false, 1);
}); });
}) })
.to(0.2, { scale: 1.1 }) .to(0.2, { scale: window.minWordScale * 1.1 })
.to(0.2, { scale: 1 }) .to(0.2, { scale: window.minWordScale })
.call(() => { .call(() => {
for (let i = 0; i < this.layerLetters.children.length; i++) { for (let i = 0; i < this.layerLetters.children.length; i++) {
let node = this.layerLetters.children[i]; let node = this.layerLetters.children[i];
......
...@@ -82,8 +82,8 @@ cc.Class({ ...@@ -82,8 +82,8 @@ cc.Class({
cc.audioEngine.play(clip, false, 1); cc.audioEngine.play(clip, false, 1);
}); });
}) })
.to(0.2, { scale: 1.1 }) .to(0.2, { scale: window.minWordScale * 1.1 })
.to(0.2, { scale: 1 }) .to(0.2, { scale: window.minWordScale })
.call(() => { .call(() => {
for (let i = 0; i < this.layerLetters.children.length; i++) { for (let i = 0; i < this.layerLetters.children.length; i++) {
let node = this.layerLetters.children[i]; let node = this.layerLetters.children[i];
......
...@@ -82,8 +82,8 @@ cc.Class({ ...@@ -82,8 +82,8 @@ cc.Class({
cc.audioEngine.play(clip, false, 1); cc.audioEngine.play(clip, false, 1);
}); });
}) })
.to(0.2, { scale: 1.1 }) .to(0.2, { scale: window.minWordScale * 1.1 })
.to(0.2, { scale: 1 }) .to(0.2, { scale: window.minWordScale })
.call(() => { .call(() => {
for (let i = 0; i < this.layerLetters.children.length; i++) { for (let i = 0; i < this.layerLetters.children.length; i++) {
let node = this.layerLetters.children[i]; let node = this.layerLetters.children[i];
......
...@@ -82,8 +82,8 @@ cc.Class({ ...@@ -82,8 +82,8 @@ cc.Class({
cc.audioEngine.play(clip, false, 1); cc.audioEngine.play(clip, false, 1);
}); });
}) })
.to(0.2, { scale: 1.1 }) .to(0.2, { scale: window.minWordScale * 1.1 })
.to(0.2, { scale: 1 }) .to(0.2, { scale: window.minWordScale })
.call(() => { .call(() => {
for (let i = 0; i < this.layerLetters.children.length; i++) { for (let i = 0; i < this.layerLetters.children.length; i++) {
let node = this.layerLetters.children[i]; let node = this.layerLetters.children[i];
......
...@@ -150,8 +150,8 @@ cc.Class({ ...@@ -150,8 +150,8 @@ cc.Class({
this.getComponent(cc.Animation).play('result1'); this.getComponent(cc.Animation).play('result1');
this.scheduleOnce(() => { this.scheduleOnce(() => {
this.playDragonBone();
this.playAudWord(() => { this.playAudWord(() => {
this.playDragonBone();
this.playAudRight(); this.playAudRight();
this.scheduleOnce(() => { this.scheduleOnce(() => {
this.onPlayResultDone(); this.onPlayResultDone();
...@@ -164,8 +164,8 @@ cc.Class({ ...@@ -164,8 +164,8 @@ cc.Class({
this.getComponent(cc.Animation).play('result1'); this.getComponent(cc.Animation).play('result1');
this.scheduleOnce(() => { this.scheduleOnce(() => {
this.playDragonBone();
this.playAudWord(() => { this.playAudWord(() => {
this.playDragonBone();
this.playAudWrong(); this.playAudWrong();
this.getComponent(cc.Animation).play('result2'); this.getComponent(cc.Animation).play('result2');
......
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