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({
loadEnd() {
GameData.questionIndex = 0;
this.initData();
console.log('汪汪汪');
this.startGame();
},
......@@ -138,6 +138,7 @@ cc.Class({
},
startGame() {
console.log('startGame');
this.playAudioEntrer();
},
......@@ -188,6 +189,7 @@ cc.Class({
playAudioEntrer() {
console.log('playAudioEntrer');
GameData.audioCount++;
let id = cc.audioEngine.play(this.audEnter, false, 1);
cc.audioEngine.setFinishCallback(id, () => {
......@@ -197,6 +199,7 @@ cc.Class({
},
playAudioQuestion(isBtn) {
console.log('playAudioQuestion');
GameData.audioCount++;
let url = this.data.questionList[GameData.questionIndex].questionAudio;
// url = 'http://127.0.0.1/iamflying.mp3';
......@@ -232,6 +235,7 @@ cc.Class({
// 随机亮起一个题干
showRandomQuestion() {
console.log('showRandomQuestion');
if (this.isDestroy) {
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