Jordinateur Blob
Nombre de messages : 260 Localisation : Devant mon ordinateur !(enfin sa dépend, peut-être avec ma copine aussi ^^) Humeur/Caractère : Aller a l'école T_T Date d'inscription : 12/05/2006
| Sujet: Plein écran automatique au démarage du jeu Dim 21 Mai - 0:25 | |
| Pour que vous ayez plein écran tout de suite au début du jeu, au lieu de faire ALT+F4, allez dans "main", suprimez le code qui s'y trouve, et collez ceci à la place : - Code:
-
#============================================================================== # ■ Main #------------------------------------------------------------------------------ # 各クラスの定義が終わった後、ここから実際の処理が始まります。 #==============================================================================
begin $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), '' $showm.call(18,0,0,0) $showm.call(13,0,0,0) $showm.call(13,0,2,0) $showm.call(18,0,2,0) # Change the $fontface variable to change the font style $fontface = "Arial" # Change the $fontsize variable to change the font size $fontsize = 24 # トランジション準備 Graphics.freeze # シーンオブジェクト (タイトル画面) を作成 $scene = Scene_Title.new # $scene が有効な限り main メソッドを呼び出す while $scene != nil $scene.main end # フェードアウト Graphics.transition(20) rescue Errno::ENOENT # 例外 Errno::ENOENT を補足 # ファイルがオープンできなかった場合、メッセージを表示して終了する filename = $!.message.sub("Ne trouve pas le fichier ou le répertoire - ", "") print("Le ficher #{filename} n'a pas été trouvé.") end
By Kyser, mod by Jordinateur | |
|