Commit 2abea7c4 authored by LikG21's avatar LikG21

修改动画时间为2s

parent ce92acb6
...@@ -130,7 +130,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -130,7 +130,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
startQuestion() { startQuestion() {
// 游戏所需的初始化数据 // 游戏所需的初始化数据
this.currentId = 0 this.currentId = 0
this.time = this.data.options.length * 3 this.time = this.data.options.length * 5
this.currentTime = this.time * 1000; this.currentTime = this.time * 1000;
this.lengthProgress = 0 this.lengthProgress = 0
this.right = 0 this.right = 0
...@@ -184,14 +184,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -184,14 +184,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
break; break;
case State.RecordEnd: case State.RecordEnd:
this.state = State.RecordShow; this.state = State.RecordShow;
this.waitTime = 1 * 1000;//1秒展示 this.waitTime = 2 * 1000;//1秒展示
this.endRecord(); this.endRecord();
break; break;
case State.RecordShow: case State.RecordShow:
this.state = State.Recording; this.state = State.Recording;
this.hideAnswer(); this.hideAnswer();
this.currentId++; this.currentId++;
this.currentTime = (this.time - this.currentId * 3)*1000
if (!this.getCurrentOptions()) { if (!this.getCurrentOptions()) {
this.gameOver(); this.gameOver();
return; return;
......
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