Advertisement
TmanDaCool1

Untitled

Apr 19th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.83 KB | None | 0 0
  1. class Scene_Title2
  2.  
  3.   #--------------------------------------------------------------------------
  4.   # * Main Processing
  5.   #--------------------------------------------------------------------------
  6.   def main
  7.     @sprite = Sprite.new
  8.     @sprite.bitmap = RPG::Cache.title("end")
  9.     Audio.bgm_play("Audio/BGM/heroes-ending.ogg",100,100)
  10.     # Execute transition
  11.     Graphics.transition
  12.     # Main loop
  13.     loop do
  14.       # Update game screen
  15.       Graphics.update
  16.       # Abort loop if screen is changed
  17.       if $scene != self
  18.         break
  19.       end
  20.     end
  21.     # Prepare for transition
  22.     Graphics.freeze
  23.     # Dispose of window
  24.     @command_window.dispose
  25.     # If switching to title screen
  26.     if $scene.is_a?(Scene_Title)
  27.       # Fade out screen
  28.       Graphics.transition
  29.       Graphics.freeze
  30.     end
  31.   end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement