From 66b1cbe21f0f01819995043302ff268acadff526 Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Sun, 22 Nov 2015 17:43:00 -0500 Subject: [PATCH] Debug mode instantly starts game --- scripts/Scene_Title.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/Scene_Title.rb b/scripts/Scene_Title.rb index 447f1cc..fba3b3b 100644 --- a/scripts/Scene_Title.rb +++ b/scripts/Scene_Title.rb @@ -33,6 +33,12 @@ class Scene_Title $tr.translate_database # Make system object $game_system = Game_System.new + # Skip title screen if debug mode + if $DEBUG + $game_map.update + $scene = Scene_Map.new + return + end # Make title graphic @sprite = Sprite.new @sprite.bitmap = RPG::Cache.title($data_system.title_name) @@ -58,7 +64,7 @@ class Scene_Title Audio.me_stop Audio.bgs_stop # Execute transition - Graphics.transition($DEBUG ? 0 : 40) + Graphics.transition(40) # Main loop loop do # Update game screen @@ -81,8 +87,8 @@ class Scene_Title @menu.dispose @cursor.bitmap.dispose @cursor.dispose - Audio.bgm_fade($DEBUG ? 0 : 60) - Graphics.transition($DEBUG ? 0 : 60) + Audio.bgm_fade(60) + Graphics.transition(60) # Run automatic change for BGM and BGS set with map $game_map.autoplay end