Commit 44c1579c authored by 神楽坂玲奈's avatar 神楽坂玲奈

title

parent 7b870276
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
#encoding: UTF-8
#encoding: UTF-8
#==============================================================================
# Scene_Title
#------------------------------------------------------------------------------
......@@ -13,9 +13,10 @@ class Scene_Title < Scene
WM::set_caption("MyCard v#{Update::Version}", "MyCard")
title = Dir.glob("graphics/titles/title_*.*")
title = title[rand(title.size)]
title = "graphics/titles/title_#{$config['screen']['height'] == 768 ? 'full' : 'resize'}_special.png" if title['special']
@background = Surface.load(title).display_format
Surface.blit(@background,0,0,0,0,$screen,0,0)
@command_window = Window_Title.new(title["left"] ? 200 : title["right"] ? 600 : 400, $config['screen']['height']/2-100)
@command_window = Window_Title.new(title["left"] ? 200 : title["right"] ? 600 : title["special"] ? 42 : 400, title["special"] ? 321 : $config['screen']['height']/2-100)
@decision_se = Mixer::Wave.load("audio/se/decision.ogg") if SDL.inited_system(INIT_AUDIO) != 0
super
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment