Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Replace the Main script with this one.
- # put the name of the font here. The font *.ttf file must be located inside
- # $partition_letter:\Windows\Fonts directory.
- FONT = "MKBritishWriting"
- #size of font
- FONT_SIZE = 24
- ################################################################################
- def FontExist?
- unless Font.exist? ( Font.default_name )
- print "Unable to find #{Font.default_name} font."
- exit
- end
- end
- def FontLoad ( fontname, fontsize )
- Font.default_name = fontname
- Font.default_size = fontsize
- FontExist?
- end
- #==============================================================================
- # ** Main
- #------------------------------------------------------------------------------
- # After defining each class, actual processing begins here.
- #==============================================================================
- begin
- Graphics.freeze
- FontLoad ( FONT, FONT_SIZE )
- $scene = Scene_Title.new
- $scene.main while $scene != nil
- Graphics.transition(30)
- rescue Errno::ENOENT
- filename = $!.message.sub("No such file or directory - ", "")
- print("Unable to find file #{filename}.")
- end
Add Comment
Please, Sign In to add comment