Commit 3f2cf4d8 authored by limingzhe's avatar limingzhe

fix: debug

parent b4cd00fe
No preview for this file type
{"ver":"1.1.2","uuid":"945b7340-600d-44cd-a219-b24a0104c2a3","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}} {
\ No newline at end of file "ver": "1.1.2",
"uuid": "945b7340-600d-44cd-a219-b24a0104c2a3",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "6e19a659-54cb-4a11-9765-a95fdc31a9d3",
"downloadMode": 0,
"duration": 4.656,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// import { getSprNode } from "./util"; // import { getSprNode } from "./util";
import { getSprNode, playAudioByUrl, showBtnAnima, getScaleRateBy2Node, localPosTolocalPos, randomSortByArr, loadDragonBones, playAudio, showTrebleFirework, getSprNodeByUrl, setSprNodeMaxLen, delayCall, asyncDelay, RandomInt, exchangeNodePos, onHomeworkFinish} from "../script/util"; import { getSprNode, playAudioByUrl, showBtnAnima, getScaleRateBy2Node, localPosTolocalPos, randomSortByArr, loadDragonBones, playAudio, showTrebleFirework, getSprNodeByUrl, setSprNodeMaxLen, delayCall, asyncDelay, RandomInt, exchangeNodePos, onHomeworkFinish} from "../script/OP_08_360_util";
cc.Class({ cc.Class({
extends: cc.Component, extends: cc.Component,
...@@ -686,6 +686,7 @@ cc.Class({ ...@@ -686,6 +686,7 @@ cc.Class({
finishClip: null, finishClip: null,
selectClip: null, selectClip: null,
starCountClip: null, starCountClip: null,
helpClip: null,
initAudioEffect() { initAudioEffect() {
this.rightClip = cc.find('Canvas/res/audio/right').getComponent(cc.AudioSource).clip; this.rightClip = cc.find('Canvas/res/audio/right').getComponent(cc.AudioSource).clip;
this.wrongClip = cc.find('Canvas/res/audio/wrong').getComponent(cc.AudioSource).clip; this.wrongClip = cc.find('Canvas/res/audio/wrong').getComponent(cc.AudioSource).clip;
...@@ -694,6 +695,7 @@ cc.Class({ ...@@ -694,6 +695,7 @@ cc.Class({
this.finishClip = cc.find('Canvas/res/audio/finish').getComponent(cc.AudioSource).clip; this.finishClip = cc.find('Canvas/res/audio/finish').getComponent(cc.AudioSource).clip;
this.selectClip = cc.find('Canvas/res/audio/select').getComponent(cc.AudioSource).clip; this.selectClip = cc.find('Canvas/res/audio/select').getComponent(cc.AudioSource).clip;
this.starCountClip = cc.find('Canvas/res/audio/star_count').getComponent(cc.AudioSource).clip; this.starCountClip = cc.find('Canvas/res/audio/star_count').getComponent(cc.AudioSource).clip;
this.helpClip = cc.find('Canvas/res/audio/help').getComponent(cc.AudioSource).clip;
}, },
...@@ -801,9 +803,90 @@ cc.Class({ ...@@ -801,9 +803,90 @@ cc.Class({
this.startTesting(); this.startTesting();
}, },
resetHelperTime() {
this.helperTime = new Date().getTime();
},
showHelper() {
console.log("in showHelper");
playAudio(this.helpClip, () => {
this.showHelperWrite();
})
},
showHelperWrite() {
for (let i = 0; i < this.animaNodeArr.length; i++) {
const animaNode = this.animaNodeArr[i];
if (!animaNode.isShowEnd) {
this.showLetter(animaNode);
return;
}
}
},
startHelper() {
this.resetHelperTime();
this.isHelpCountDown = true;
const checkTime = () => {
if (!this.isHelpCountDown) {
return;
}
const curTime = new Date().getTime();
if (curTime - this.helperTime > 15 * 1000) {
this.showHelper();
this.resetHelperTime();
}
delayCall(0.05, () => {
checkTime();
})
}
checkTime();
},
stopHelper() {
this.isHelpCountDown = false;
},
//调起检测 //调起检测
startTesting() { startTesting() {
this.startHelper();
// this.ques_region = [ // this.ques_region = [
// 0, 0.077, // 0, 0.077,
// 1, 0.077, // 1, 0.077,
...@@ -884,6 +967,8 @@ cc.Class({ ...@@ -884,6 +967,8 @@ cc.Class({
//结束检测 //结束检测
endTesting() { endTesting() {
this.stopHelper();
const cw = window.courseware; const cw = window.courseware;
if (!cw || !cw.closeOsmoHandwriting) { if (!cw || !cw.closeOsmoHandwriting) {
......
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