Commit 7256b71c authored by yu's avatar yu

1

parent 9dbec023
...@@ -197,7 +197,7 @@ export default class LayerRecord extends cc.Component { ...@@ -197,7 +197,7 @@ export default class LayerRecord extends cc.Component {
"fluency": 60, "fluency": 60,
"rhythm": 90, "rhythm": 90,
"kernel_version": "5.2.4", "kernel_version": "5.2.4",
"overall": 55,//75 "overall": 1,//75
"integrity": 100, "integrity": 100,
"duration": "6.779", "duration": "6.779",
"rear_tone": "fall", "rear_tone": "fall",
......
This diff is collapsed.
...@@ -138,6 +138,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -138,6 +138,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (self.tempCount == 2) { if (self.tempCount == 2) {
self.score += 1; self.score += 1;
self.layout_card.active = false; self.layout_card.active = false;
self.isTouch = false;
// pg.event.once('layer_coin_show_coin_end', () => { // pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer(); // this.nextLayer();
// }) // 动画回调 // }) // 动画回调
...@@ -148,6 +149,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -148,6 +149,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
targetTime: self.touchData.time, targetTime: self.touchData.time,
reset: false reset: false
}) })
pg.event.emit("layer_record_start");
} }
}) })
pg.event.emit('layer_right_show_tryagain') pg.event.emit('layer_right_show_tryagain')
...@@ -155,6 +157,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -155,6 +157,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.once('layer_right_show_good_end', () => { pg.event.once('layer_right_show_good_end', () => {
this.score += 2; this.score += 2;
this.layout_card.active = false; this.layout_card.active = false;
self.isTouch = false;
// pg.event.once('layer_coin_show_coin_end', () => { // pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer(); // this.nextLayer();
// }) // 动画回调 // }) // 动画回调
...@@ -165,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -165,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.once('layer_right_show_excellent_end', () => { pg.event.once('layer_right_show_excellent_end', () => {
this.score += 3; this.score += 3;
this.layout_card.active = false; this.layout_card.active = false;
self.isTouch = false;
// pg.event.once('layer_coin_show_coin_end', () => { // pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer(); // this.nextLayer();
// }) // 动画回调 // }) // 动画回调
...@@ -208,6 +212,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -208,6 +212,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
//开始 //开始
this.showQuestions(); this.showQuestions();
} }
private isTouch = false;
private showQuestions() { private showQuestions() {
let len = Game.getIns().len; let len = Game.getIns().len;
let count = len >= 4 ? 4 : len; let count = len >= 4 ? 4 : len;
...@@ -221,6 +226,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -221,6 +226,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
intact.active = true; intact.active = true;
broken.active = false; broken.active = false;
egg.on(cc.Node.EventType.TOUCH_END, () => { egg.on(cc.Node.EventType.TOUCH_END, () => {
if (this.isTouch) return;
this.isTouch = true;
this.stopArrowAction(); this.stopArrowAction();
this.hammerAction(egg.getPosition()).then(async () => { this.hammerAction(egg.getPosition()).then(async () => {
let di = cc.find("di", egg); let di = cc.find("di", egg);
...@@ -262,6 +269,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -262,6 +269,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (!data) { if (!data) {
self.layout_card.active = false; self.layout_card.active = false;
self.isTouch = false;
return; return;
} }
self.layout_card.active = true; self.layout_card.active = true;
......
...@@ -30,6 +30,7 @@ export const defaultData = { ...@@ -30,6 +30,7 @@ export const defaultData = {
} }
], ],
"npcTitle": "hi fiddler", "npcTitle": "hi fiddler",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3", "npcAudio": "",
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"npcAudioName": "bear_2.mp3" "npcAudioName": "bear_2.mp3"
} }
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