var states = {
boot : boot,
start : start,
tutorial : tutorial,
exercises : exercises,
over : over
}
this.create = function(){
// voicePlay('voice-p0');
// addBg('bg-p0');
// tiaotiao = game.add.spine(game.world.centerX,game.world.centerY+75,'tiaotiao');
// addBasicElement(game.world.centerX,495,'board');
// addText(game.world.centerX,game.world.centerY+105,COURSE_TITLE,"67px","#3c7d2a");
// addButton(game.world.centerX,570,'btn-start',toTutorial,0,0,1);
// tiaotiao.setAnimationByName(0,'p0std',true);
game.state.start('tutorial');
}
// function toTutorial(){
// if(!startBtnLock){
// console.log(startBtnLock);
// startBtnLock = true;
// soundPlay('sound-btn-start');
// tiaotiao.setAnimationByName(0,'p0start',false);
//
// setTimeout(function(){
// game.state.start('tutorial');
//
// },1200);
//
// }
// }
}
注释的部分都是需要跳过的,红色字体是直接进入下个场景的