Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Snippet to bypass the title screen, usefull for testing reasons.
- #===============================================================================
- module SceneManager
- #===============================================================================
- #--------------------------------------------------------------------------
- # Get First Scene Class
- #--------------------------------------------------------------------------
- def self.first_scene_class
- $BTEST ? Scene_Battle : Scene_AutoLoadGame
- end
- end
- #===============================================================================
- class Scene_AutoLoadGame < Scene_Base
- #===============================================================================
- # // Start Method
- def start
- super
- SceneManager.clear
- Graphics.freeze
- instant_game
- end
- # // Get Save Game Data (if exists?)
- def instant_game
- if DataManager.save_file_exists?
- index = DataManager.last_savefile_index
- DataManager.load_game(index)
- else
- DataManager.setup_new_game
- end
- $game_map.autoplay
- SceneManager.goto(Scene_Map)
- end
- end
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement