#============================================================================== # ** Main #------------------------------------------------------------------------------ # After defining each class, actual processing begins here. #==============================================================================
begin # Prepare for transition Graphics.freeze $pretitle = Sprite.new $pretitle.bitmap = RPG::Cache.picture("Windows XP.jpg") Graphics.transition(12) t = 0 loop do Graphics.update t += 1 if t >= 40 break end end Graphics.freeze $pretitle.dispose Graphics.transition(12) Graphics.freeze $pretitle = Sprite.new $pretitle.bitmap = RPG::Cache.picture("Bliss.bmp") Graphics.transition(12) t = 0 loop do Graphics.update t += 1 if t >= 40 break end end Graphics.freeze $pretitle.dispose Graphics.transition(12) Graphics.freeze # Make scene object (title screen) $scene = Scene_Title.new # Call main method as long as $scene is effective while $scene != nil $scene.main end # Fade out Graphics.transition(20) rescue Errno::ENOENT # Supplement Errno::ENOENT exception # If unable to open file, display message and end filename = $!.message.sub("No such file or directory - ", "") print("Unable to find file #{filename}.") end
Nama file seperti yg di baris ke 11 dan 26 tinggal dirobah jadi nama file gambar pretitle yg ditaroh di Graphics\Pictures (ada 2)