Scene_Boot.prototype.start = function() {
Scene_Base.prototype.start.call(this);
SoundManager.preloadImportantSounds();
if (DataManager.isBattleTest()) {
DataManager.setupBattleTest();
SceneManager.goto(Scene_Battle);
} else if (DataManager.isEventTest()) {
DataManager.setupEventTest();
SceneManager.goto(Scene_Map);
} else {
this.checkPlayerLocation();
DataManager.setupNewGame();
SceneManager.goto(Scene_Splash);
Window_TitleCommand.initCommandPosition();
}
this.updateDocumentTitle();
};
function Scene_Splash() {
this.initialize.apply(this, arguments);
}
Scene_Splash.prototype = Object.create(Scene_Base.prototype);
Scene_Splash.prototype.constructor = Scene_Splash;
Scene_Splash.prototype.initialize = function() {
Scene_Base.prototype.initialize.call(this);
};
Scene_Splash.prototype.create = function() {
Scene_Base.prototype.create.call(this);
this._wait = 0;
this.logo=new Sprite();
this.logo.bitmap=ImageManager.loadSystem("MyLogo");
this.addChild(this.logo);
};
Scene_Splash.prototype.start = function() {
Scene_Base.prototype.start.call(this);
this.startFadeIn(this.slowFadeSpeed(), false);
this.logo.anchor.x=0.5;
this.logo.anchor.y=0.5;
this.logo.x=Graphics.width/2;
this.logo.y=Graphics.height/2;
};
Scene_Splash.prototype.update = function() {
if (this.isActive() && !this.isBusy() && (Input.isTriggered('ok') || TouchInput.isTriggered())) {
SceneManager.goto(Scene_Title);
return;
}
this._wait = this._wait || 0;
if (this._wait >= 0) {
if (this._wait >= 90) {
SceneManager.goto(Scene_Title);
this._wait = -1
} else {
this._wait++;
}
}
Scene_Base.prototype.update.call(this);
};
Scene_Splash.prototype.stop = function() {
Scene_Base.prototype.stop.call(this);
this.fadeOutAll();
};
Scene_Splash.prototype.terminate = function() {
Scene_Base.prototype.terminate.call(this);
AudioManager.stopAll();
};