Commit a052c664 authored by 范雪寒's avatar 范雪寒

feat:

parent 09dcab2a
{"ver":"1.1.2","uuid":"d421ad88-e36c-40a9-9b1d-4337d98697ca","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": "d421ad88-e36c-40a9-9b1d-4337d98697ca",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -118,7 +118,7 @@ cc.Class({ ...@@ -118,7 +118,7 @@ cc.Class({
loadEnd() { loadEnd() {
GameData.questionIndex = 0; GameData.questionIndex = 0;
this.initData(); this.initData();
console.log('汪汪汪');
this.startGame(); this.startGame();
}, },
...@@ -138,6 +138,7 @@ cc.Class({ ...@@ -138,6 +138,7 @@ cc.Class({
}, },
startGame() { startGame() {
console.log('startGame');
this.playAudioEntrer(); this.playAudioEntrer();
}, },
...@@ -188,6 +189,7 @@ cc.Class({ ...@@ -188,6 +189,7 @@ cc.Class({
playAudioEntrer() { playAudioEntrer() {
console.log('playAudioEntrer');
GameData.audioCount++; GameData.audioCount++;
let id = cc.audioEngine.play(this.audEnter, false, 1); let id = cc.audioEngine.play(this.audEnter, false, 1);
cc.audioEngine.setFinishCallback(id, () => { cc.audioEngine.setFinishCallback(id, () => {
...@@ -197,6 +199,7 @@ cc.Class({ ...@@ -197,6 +199,7 @@ cc.Class({
}, },
playAudioQuestion(isBtn) { playAudioQuestion(isBtn) {
console.log('playAudioQuestion');
GameData.audioCount++; GameData.audioCount++;
let url = this.data.questionList[GameData.questionIndex].questionAudio; let url = this.data.questionList[GameData.questionIndex].questionAudio;
// url = 'http://127.0.0.1/iamflying.mp3'; // url = 'http://127.0.0.1/iamflying.mp3';
...@@ -232,6 +235,7 @@ cc.Class({ ...@@ -232,6 +235,7 @@ cc.Class({
// 随机亮起一个题干 // 随机亮起一个题干
showRandomQuestion() { showRandomQuestion() {
console.log('showRandomQuestion');
if (this.isDestroy) { if (this.isDestroy) {
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