Id: 230; Nick: n/a; Timestamp: 2007-05-14 16:03:46; Pasted as: Ruby
Description: n/a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#==============================================================================
# â–�  Main
#------------------------------------------------------------------------------
#  �クラス�定義�終���後����ら実際�処� �始�� ��。
#==============================================================================
 
begin
 
� # This variable determines the default font type
� $defaultfonttype = "Arial"
� # This variable determines the default font size
� $defaultfontsize = 24
 
� # トランジション準備
� Graphics.freeze
� # シーンオブジェクト (タイトル画�) を作�
� #loading stuffs---------------------------
�  # データベースをロード
�  � $data_actors �  �  �  � = load_data("Data/Actors.rxdata")
�  � $data_classes �  �  �  = load_data("Data/Classes.rxdata")
�  � $data_skills �  �  �  � = load_data("Data/Skills.rxdata")
�  � $data_items �  �  �  �  = load_data("Data/Items.rxdata")
�  � $data_weapons �  �  �  = load_data("Data/Weapons.rxdata")
�  � $data_armors �  �  �  � = load_data("Data/Armors.rxdata")
�  � $data_enemies �  �  �  = load_data("Data/Enemies.rxdata")
�  � $data_troops �  �  �  � = load_data("Data/Troops.rxdata")
�  � $data_states �  �  �  � = load_data("Data/States.rxdata")
�  � $data_animations �  � = load_data("Data/Animations.rxdata")
�  � $data_tilesets �  �  � = load_data("Data/Tilesets.rxdata")
�  � $data_common_events = load_data("Data/CommonEvents.rxdata")
�  � $data_system �  �  �  � = load_data("Data/System.rxdata")
�  � # シス� � オブジェクトを作�
�  � $game_system = Game_System.new
�  � # タイトルグラフィックを作
�
�  � @sprite = Sprite.new
�  �
�  � #end of loading stuffs-----------------------------------
�  � $game_temp �  �  �  �  � = Game_Temp.new
�  � $game_system �  �  �  � = Game_System.new
�  � $game_switches �  �  � = Game_Switches.new
�  � $game_variables �  �  = Game_Variables.new
�  � $game_self_switches = Game_SelfSwitches.new
�  � $game_screen �  �  �  � = Game_Screen.new
�  � $game_actors �  �  �  � = Game_Actors.new
�  � $game_party �  �  �  �  = Game_Party.new
�  � $game_troop �  �  �  �  = Game_Troop.new
�  � $game_map �  �  �  �  �  = Game_Map.new
�  � $game_player �  �  �  � = Game_Player.new
�  � # �期パー� ィをセットアップ
�  � $game_party.setup_starting_members
�  � # �期�置�マップをセットアップ
�  � $game_map.setup($data_system.start_map_id)
�  � # プレイヤーを�期�置�移動
�  � $game_player.moveto($data_system.start_x, $data_system.start_y)
�  � # プレイヤーをリフレッシュ
�  � $game_player.refresh
�  � # マップ�設定�れ��る BGM � BGS �自動切� 替�を実行
�  � $game_map.autoplay
�  � # マップを更新 (並列イベント実行)
�  � $game_map.update
�  � #マップ画��切� 替�
� $scene = Scene_Map.new
�  �  
 
Â� # $scene ã?Œæœ‰å� ¹ã?ªé™?ã‚�  main メソッドを呼ã?³å‡ºã?™
� while $scene != nil
�  � $scene.main
� end
� # フェードアウト
� Graphics.transition(20)
rescue Errno::ENOENT
� # 例外 Errno::ENOENT を補足
Â� # ファイルã?Œã‚ªãƒ¼ãƒ—ンã?§ã??ã?ªã?‹ã?£ã?Ÿå� ´å?ˆã€?メッセージを表示ã?—ã?¦çµ‚äº� ã?™ã‚‹
� filename = $!.message.sub("No such file or directory - ", "")
� print("File #{filename} not found.")
end
#====================================================
Options: New, Download,
;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About) - Highlighted with GeSHi