Added scripts
This commit is contained in:
parent
d40ae86ba4
commit
5118df09f4
106 changed files with 15680 additions and 0 deletions
29
scripts/Main.rb
Normal file
29
scripts/Main.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
#==============================================================================
|
||||
# ** Main
|
||||
#------------------------------------------------------------------------------
|
||||
# After defining each class, actual processing begins here.
|
||||
#==============================================================================
|
||||
|
||||
begin
|
||||
$DEBUG = true
|
||||
$DEMO = false
|
||||
|
||||
Graphics.frame_rate = 60
|
||||
Font.default_size = 20
|
||||
|
||||
# Prepare for transition
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue