Commit 15133820 authored by Lwd's avatar Lwd

aaaa

parent da4df9fd
......@@ -54,10 +54,6 @@ var game = cc.Class({
g.data_mgr.resGameData();
//获得数据
g.res_mgr.getFormData();
//播放游戏开始音效
g.speaker.inst.play_start();
//游戏开始
this.gameStart();
},
//更新界面信息
......@@ -75,6 +71,7 @@ var game = cc.Class({
//游戏开始
gameStart: function () {
console.log("游戏开始:" + g.data_mgr);
//播放一个上面的音乐
this.setAudioInfo(1);
this.PlayAudio();
......
......@@ -68,7 +68,8 @@ g.data_mgr = {
this.addPreloadImage();
this.addPreloadAudio();
this.addPreloadAnima();
this.preload(); ``
this.preload();
console.log("数据处理完毕:" + res);
},
//预加载图片
......@@ -112,6 +113,12 @@ g.data_mgr = {
//更新游戏界面信息
g.game.inst.UpdataUi();
//播放游戏开始音效
g.speaker.inst.play_start();
//游戏开始
this.gameStart();
//初始化音频
// this.initAudio();
// this.initListener();
......
......@@ -11,7 +11,7 @@ g.res_mgr = {
g.data_mgr.data = res;
//数据处理
g.data_mgr.proGameData();
console.log(res);
console.log("获得表单数据:" + res);
}.bind(this));
} catch (error) {
//console.error('没有查找到courseware.getData方法', error);
......
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